Skip to main content
PUT
/
v1
/
event-types
/
{eventType}
/
booking-forms
/
{field}
cURL
curl --request PUT \
  --url https://api.novacal.io/v1/event-types/{eventType}/booking-forms/{field} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "type": "text",
  "is_required": true,
  "is_active": true,
  "position": 1,
  "placeholder": "<string>",
  "options": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "id": 123,
    "identifier": "<string>",
    "label": "<string>",
    "type": "text",
    "placeholder": "<string>",
    "is_required": true,
    "is_active": true,
    "position": 1,
    "options": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

eventType
integer<int64>
required

ID of event type

field
integer<int64>
required

ID of booking form field to update

Body

application/json

Booking form field data to update

label
string
required

Display label for the form field

Maximum string length: 255
type
enum<string>
required

The type of form field

Available options:
text,
textarea,
select,
checkbox,
radio,
phone,
email,
multiple_emails
is_required
boolean
required

Whether the form field is required

is_active
boolean
required

Whether the form field is active

position
integer
required

Display order of the form field

Required range: x >= 0
placeholder
string

Placeholder text for the form field

Maximum string length: 255
options
string[]

Selectable options for select, checkbox, or radio fields

Response

200 - application/json

Booking form field updated

success
boolean
required

Indicates whether the request was successful

Example:

true

data
object
required