- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
CreateSuggestion
Fields of CreateSuggestion and how to reach it.
Selection. This type is a selection. An intent returns it, and you choose which of its fields come back.
The schema carries no description for this type.
Where it appears
Section titled “Where it appears”No connection leads here from a primary entity.
createSuggestionreturns it.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
suggestion |
Suggestion |
A suggestion is a proposed correction to Enigma data. |
Example
Section titled “Example”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 } }}