Skip to main content
POST
/
api
/
v1
/
questions
/
batch
Create Questions Batch
curl --request POST \
  --url https://api.getversive.com/api/v1/questions/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "questions": [
    {
      "study_id": "study_123",
      "content": "Question 1",
      "type": "text"
    },
    {
      "study_id": "study_123",
      "content": "Question 2",
      "type": "choice",
      "props": {
        "options": [
          "A",
          "B"
        ]
      }
    }
  ]
}
'
{
  "created_question_ids": [
    "q_123",
    "q_124"
  ],
  "updated_question_ids": [
    "q_100"
  ]
}
Create or update multiple questions in a single request. Efficient for bulk operations.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
questions
Questions · object[]
required

Response

Successful Response

created_question_ids
string[]
required
updated_question_ids
string[]
required