Skip to main content
PUT
Update SurveyQuestion
Updates an existing SurveyQuestion record. You must include the Id of the record to update along with all required fields.

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-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the SurveyQuestion record to update.
integer
required
ID of the survey that contains this question; the survey’s location determines access to the question.
string
required
Required question label shown to customers.
string
required
Required explanatory text shown below the question to customers.
integer
required
Integer position for displaying this question; lower values appear first and the system renumbers questions after create or update.
integer
required
Controls the customer input: Text, Boolean (Yes/No), LongText, Date, Dropdown, or Binary file upload; defaults to Text.

Optional Fields

string
Comma-separated choices for a Dropdown question; leave empty for other question types.
boolean
Whether this question appears in the customer-facing survey.
boolean
Whether customers can select more than one choice for a Dropdown question.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the surveyquestion was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response