Skip to main content
POST
/
cabinet
/
polls
/
{response_id}
/
questions
/
{question_id}
/
answer
Answer 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>"
}

Path Parameters

response_id
integer
required
question_id
integer
required

Body

application/json

Request to answer a poll question.

option_id
integer
required

Response

Successful Response

Response after answering.

success
boolean
required
is_completed
boolean
required
total_questions
integer
required
next_question
PollQuestionResponse · object

Poll question with options.

current_question_index
integer | null
reward_granted
integer | null
message
string | null