curl --request POST \
--url http://localhost:8080/cabinet/polls/{response_id}/questions/{question_id}/answer \
--header 'Content-Type: application/json' \
--data '
{
"option_id": 123
}
'{
"success": true,
"is_completed": true,
"total_questions": 123,
"next_question": {
"id": 123,
"text": "<string>",
"order": 123,
"options": [
{
"id": 123,
"text": "<string>",
"order": 123
}
]
},
"current_question_index": 123,
"reward_granted": 123,
"message": "<string>"
}Submit answer for a poll question.
curl --request POST \
--url http://localhost:8080/cabinet/polls/{response_id}/questions/{question_id}/answer \
--header 'Content-Type: application/json' \
--data '
{
"option_id": 123
}
'{
"success": true,
"is_completed": true,
"total_questions": 123,
"next_question": {
"id": 123,
"text": "<string>",
"order": 123,
"options": [
{
"id": 123,
"text": "<string>",
"order": 123
}
]
},
"current_question_index": 123,
"reward_granted": 123,
"message": "<string>"
}Request to answer a poll question.
Successful Response