Create a question version
POST
Save new wording without changing the original question version.
API-key permission: questions update. Business sessions and resource-authorized OAuth tokens are also supported.
cookie
orvelt-biz.session_token<token>An existing Business session. Browser requests must also pass origin and CSRF checks.
projectId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidquestionId*stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidapplication/json- body
tags?array<>Items
1 <= itemsisAutoTags?booleanWhen true, Orvelt chooses the tags from the question and its options whenever they change. Sending tags turns it off.
priority?integerRange
1 <= value <= 100isAutoPriority?booleanstatus?stringDefault
"archived"Value in
"active""archived"question*stringLength
1 <= length <= 500OK
application/json- response
question*curl -X POST 'https://api.orvelt.com/v1/project/497f6eca-6276-4993-bfeb-53cbbbba6f08/questions/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions' \
-H 'Content-Type: application/json' \
-d '{
"question": "string"
}'Example Response
{
"question": {
"id": "string",
"familyId": "44b97bbb-267f-4989-8ce2-585694b2e454",
"version": 1,
"question": "string",
"answerMode": "text_only",
"answers": {
"options": [
{
"id": "string",
"option": "string",
"description": "string"
},
{
"id": "string",
"option": "string",
"description": "string"
}
],
"allowOther": true,
"skippable": true,
"layout": "inline",
"chipPosition": "left",
"otherPlaceholder": "string",
"freeTextPlaceholder": "string",
"freeTextMultiline": true
},
"tags": [
"Trust"
],
"priority": 1,
"isAutoPriority": true,
"isAutoTags": true,
"status": "active",
"responseVisibility": "default",
"createdAt": "2019-08-24T14:15:22Z"
}
}