Add booking question
create_booking_questionAdd a question to an appointment type's booking form (Pro). DROPDOWN needs options. key is how the answer is stored (customFields.{key} on appointments); it defaults to the camelCased label and can't change later. isReference makes the answer a reference number, searchable in the appointments list. Added to the end of the form. Returns the new question with its id. Requires scope locations:write (Admin role).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Letters and numbers, starting with a letter. | |
| label | Yes | Question shown to carriers, e.g. "Seal number". | |
| options | No | Choices; required for DROPDOWN, ignored otherwise. | |
| helpText | No | Hint shown under the question. | |
| required | No | Must be answered to book. Default false. | |
| fieldType | Yes | Answer input type. MULTI_TEXT holds a list, such as several PO numbers. | |
| locationId | Yes | Location id, from list_locations. | |
| isReference | No | Treat the answer as a searchable reference number. | |
| appointmentTypeId | Yes | Appointment type id, from list_appointment_types (get_location_setup also lists inactive types). |