POST
/
api
/
loyalty
/
questions
/
{id}
curl --request POST \
  --url https://admin.snagsolutions.io/api/loyalty/questions/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "questionText": "What is your favorite color?",
  "loyaltyQuestionAnswers": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174333",
      "text": "Red",
      "isCorrect": true,
      "sortIdentifier": 1
    }
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "text": "<string>",
  "loyaltyQuestionChoices": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "text": "<string>",
      "sortIdentifier": 123
    }
  ]
}

Path Parameters

id
string
required

Body

application/json
Body
questionText
string
required

The text of the question

Example:

"What is your favorite color?"

loyaltyQuestionAnswers
object[]
required

Array of choices for the question

Response

200
application/json
200

Response returned for a question

id
string
required
text
string
required
loyaltyQuestionChoices
object[]
required