SurveyQuestions
Create SurveyQuestion
Create a new SurveyQuestion record.
POST
Create SurveyQuestion
A SurveyQuestion defines a single question within a survey, including its type (text, boolean, long text, date, dropdown, or binary), label, and display order.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the SurveyQuestion-Create role.Enums
eQuestionType — QuestionType values
eQuestionType — QuestionType values
| Value | Name |
|---|---|
| 1 | Text |
| 2 | Boolean |
| 3 | LongText |
| 4 | Date |
| 5 | Dropdown |
| 6 | Binary |
Request Body
Required Fields
ID of the survey linked to this record.
The text value for this survey question.
Free-text description of this survey question.
The display order value for this survey question.
The question type value for this survey question.
Optional Fields
The available options value for this survey question.
Whether this survey question is currently active.
Whether allow multiple options is enabled.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the surveyquestion was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create SurveyQuestion