Questions

Create questions

post

Create new questions for a survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Body
anyOptional
Responses
200Success
application/json
post
/api/surveys/questions
200Success

Upsert questions

put

Create or update questions for a survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
surveyIdstringRequiredPattern: [^\/#\?]+?
Body
anyOptional
Responses
200Success
application/json
put
/api/surveys/{surveyId}/questions
200Success

Update a question

put

Update a specific question in a survey

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
surveyIdstringRequiredPattern: [^\/#\?]+?
questionIdstringRequiredPattern: [^\/#\?]+?
Body
idstringOptional

Unique identifier for the question

Example: 12345
surveyIdstringOptional

Identifier for the survey

Example: survey123
maxLengthnumberOptional

Maximum length of the answer

Example: 255
pageNumbernumberRequired

Page number where the question appears

Default: 1Example: 1
parentQuestionIdstringOptional

Identifier for the parent question

Example: parent123
ordernumberOptional

Order of the question

Example: 1
scorenumberOptional

Score associated with the question

Example: 10
answerValueSetstringOptional

Value set for the answer

Example: valueSet123
linkIdstringRequired

Link identifier

Example: link123
headingstringOptional

Heading of the question

Example: Question Heading
labelstringOptional

Label of the question

Example: Question Label
definitionstringOptional

Definition of the question

Example: Question Definition
prefixstringOptional

Prefix for the question

Example: Q
textstringOptional

Text of the question

Example: What is your name?
multiSelectbooleanOptional

Indicates if multiple selections are allowed

Example: true
typestring · enumRequired

Type of the question

Default: textExample: radioButtonPossible values:
displayTypestring · enumOptional

Display type of the question

Default: shortAnswerExample: multipleChoicePossible values:
enableBehaviorstring · enumOptional

Behavior to enable the question

Default: anyExample: allPossible values:
requiredbooleanOptional

Indicates if the question is required

Example: true
repeatsbooleanOptional

Indicates if the question can be repeated

Example: true
readOnlybooleanOptional

Indicates if the question is read-only

Example: true
attributesanyOptional

Additional attributes for the question

Default: {}
Responses
200Success
application/json
put
/api/surveys/{surveyId}/questions/{questionId}
200Success

Update a question

put

Update a specific question

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
questionIdstringRequiredPattern: [^\/#\?]+?
Body
idstringOptional

Unique identifier for the question

Example: 12345
surveyIdstringOptional

Identifier for the survey

Example: survey123
maxLengthnumberOptional

Maximum length of the answer

Example: 255
pageNumbernumberRequired

Page number where the question appears

Default: 1Example: 1
parentQuestionIdstringOptional

Identifier for the parent question

Example: parent123
ordernumberOptional

Order of the question

Example: 1
scorenumberOptional

Score associated with the question

Example: 10
answerValueSetstringOptional

Value set for the answer

Example: valueSet123
linkIdstringRequired

Link identifier

Example: link123
headingstringOptional

Heading of the question

Example: Question Heading
labelstringOptional

Label of the question

Example: Question Label
definitionstringOptional

Definition of the question

Example: Question Definition
prefixstringOptional

Prefix for the question

Example: Q
textstringOptional

Text of the question

Example: What is your name?
multiSelectbooleanOptional

Indicates if multiple selections are allowed

Example: true
typestring · enumRequired

Type of the question

Default: textExample: radioButtonPossible values:
displayTypestring · enumOptional

Display type of the question

Default: shortAnswerExample: multipleChoicePossible values:
enableBehaviorstring · enumOptional

Behavior to enable the question

Default: anyExample: allPossible values:
requiredbooleanOptional

Indicates if the question is required

Example: true
repeatsbooleanOptional

Indicates if the question can be repeated

Example: true
readOnlybooleanOptional

Indicates if the question is read-only

Example: true
attributesanyOptional

Additional attributes for the question

Default: {}
Responses
200Success
application/json
put
/api/surveys/questions/{questionId}
200Success

Delete a question

delete

Delete a specific question

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
questionIdstringRequiredPattern: [^\/#\?]+?
Responses
200Success
application/json
delete
/api/surveys/questions/{questionId}
200Success