- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Intent
createSuggestion
Submits a suggested change to Enigma data for review.
Intent. This intent is a write. It stores something and returns the stored record.
Submits a suggested change to Enigma data for review.
Signature
Section titled “Signature”createSuggestion(suggestion: SuggestionInput!): CreateSuggestionReturns CreateSuggestion.
suggestion
Section titled “suggestion”A SuggestionInput. Its fields, and the part each one belongs to, are on its own page.
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 } }}