Snag Docs logo

Submit a response to a question

This endpoint allows you to submit a response to a question.

POSThttps://admin.snagsolutions.io/api/loyalty/questions_responses

This endpoint allows you to submit a response to a question.

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Body

Body

loyaltyQuestionChoiceIdstring<uuid>required

UUID of the selected choice

websiteIdstring<uuid>

UUID of the website to filter responses

organizationIdstring<uuid>

UUID of the organization to filter responses

userIdstring<uuid>

UUID of the user who submitted the response

Response

application/json

200

responseobjectrequired
response.idstring<uuid>required

UUID of the response

response.userIdstring<uuid>required

UUID of the user who submitted the response

response.loyaltyQuestionIdstring<uuid>required

UUID of the question being answered

response.loyaltyQuestionChoiceIdstring<uuid>required

UUID of the selected choice

isCorrectbooleanrequired

Whether the submitted answer was correct

alreadySubmittedbooleanrequired

Whether the user had already submitted an answer to this question