cURL
curl --request POST \ --url https://admin.snagsolutions.io/api/loyalty/questions/{id} \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "questionText": "What is your favorite color?", "loyaltyQuestionAnswers": [ { "text": "Red", "isCorrect": true, "sortIdentifier": 1, "id": "123e4567-e89b-12d3-a456-426614174333" } ] } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "text": "<string>", "loyaltyQuestionChoices": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "text": "<string>", "sortIdentifier": 123 } ] }
This endpoint allows you to update an existing question.
Documentation IndexFetch the complete documentation index at: https://docs.snagsolutions.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.snagsolutions.io/llms.txt
Use this file to discover all available pages before exploring further.
Body
The text of the question
"What is your favorite color?"
Array of choices for the question
Show child attributes
200
Response returned for a question
Was this page helpful?