Orvelt

Update a question

PATCH
/project/{projectId}/questions/{questionId}

Change settings, activate, or archive a question version.

API-key permission: questions update. Business sessions and resource-authorized OAuth tokens are also supported.

Authorization

cookieorvelt-biz.session_token<token>

An existing Business session. Browser requests must also pass origin and CSRF checks.

Path Parameters

projectId*string
Match^([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)$
Formatuuid
questionId*string
Match^([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)$
Formatuuid

Request Body

application/json
  1. body
tags?array<>
Items1 <= items
isAutoTags?boolean

When true, Orvelt chooses the tags from the question and its options whenever they change. Sending tags turns it off.

priority?integer
Range1 <= value <= 100
isAutoPriority?boolean
status?string
Value in"active""archived"

Response Body

OK

application/json
  1. response
question*
Example Request
curl -X PATCH 'https://api.orvelt.com/v1/project/497f6eca-6276-4993-bfeb-53cbbbba6f08/questions/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'Content-Type: application/json' \
  -d '{}'
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"
  }
}