Skip to content
Console(opens in a new tab)

SuggestionInput

The input to `createSuggestion`.

Payload. This input holds what a write needs: the record to act on, the new values to store, or both. You pass it to createSuggestion(suggestion).

The input to createSuggestion. It holds the suggested change and the identity of the person who sends it.

Field Type Part Description
suggestedByUserId ID Payload The ID of the user who makes the suggestion. When you set it, the API records this ID as the author instead of suggestedByEmail.
suggestedByEmail String! Payload The email address of the person who makes the suggestion.
payload JSON! Payload The suggested change, as a JSON object. List the affected entities and relationships, with the suggested value of each changed field.

This intent writes, so the reference does not run it against production data. No response is shown. The payload variable holds the suggested change as a JSON object.

mutation CreateSuggestion($payload: JSON!) {
createSuggestion(suggestion: {
suggestedByEmail: "user@example.com"
payload: $payload
}) {
suggestion { id status createdTimestamp }
}
}