Skip to main content
POST
Create FormPageQuestion
A form question (FormPageQuestion) is an ordered question within a location’s customer form. It defines the customer-facing label, explanation, input type, optional choices, and whether the question is shown or required.

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 FormPageQuestion-Create role.

Enums

Request Body

Required Fields

integer
required
ID of the form that contains this question; the form’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 form.
boolean
Whether customers can select more than one choice for a Dropdown question.
boolean
Whether the customer-facing form marks an answer to this question as required.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the formpagequestion was created 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