Question
Update an existing question
API Documentation
Identity
Loyalty
- GETGet loyalty accounts
- GETGet the rank of a user based on their loyalty points
- GETGet loyalty currencies
- POSTCreate a loyalty currency
- GETGet Loyalty Multipliers
- POSTCreate Loyalty Multiplier
- DELDelete Loyalty Multiplier by External Identifier
- POSTUpdate Loyalty Multiplier
- DELDelete Loyalty Multiplier by ID
- GETGet Loyalty Rule Edits
- POSTRestore Loyalty Rule Edit
- GETGet Loyalty Rule Groups
- GETGet Loyalty Rules
- POSTCreate Loyalty Rule
- POSTUpdate Loyalty Rule
- DELDelete Loyalty Rule
- POSTComplete Loyalty Rule
- GETGet Processing status for a specific user on loyalty rules
- POSTCreate Loyalty Transaction
- GETGet Loyalty Transaction Entries
- GETGet Loyalty Rule Chains
Badge
Minting
Question
Question
Update an existing question
This endpoint allows you to update an existing question.
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
Body
application/json
Body
The text of the question
Example:
"What is your favorite color?"
Array of choices for the question
The text of the choice
Example:
"Red"
Whether this choice is correct
Example:
true
The order in which to display the choice
Example:
1
UUID of the choice (optional for new choices)
Example:
"123e4567-e89b-12d3-a456-426614174333"
Was this page helpful?
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
}
]
}