Update Appointment Type

Update an existing appointment type

PUT/calendar/appointment-types
Requires Bearer authentication

Update an existing appointment type. Only include fields you want to change.

Request Body

idstringrequired

The appointment type ID to update.

namestring

Update the name.

durationMinutesinteger

Update the duration.

descriptionstring

Update the description.

colorstring

Update the color.

bufferBeforeMinutesinteger

Update buffer before.

bufferAfterMinutesinteger

Update buffer after.

maxPerDayinteger

Update daily limit.

maxPerWeekinteger

Update weekly limit.

maxPerMonthinteger

Update monthly limit.

minNoticeHoursinteger

Update minimum notice hours.

maxDaysAheadinteger

Update booking window.

requiresConfirmationboolean

Update confirmation requirement.

bookingQuestionsarray

Replace booking questions.

scheduleIdstring

Update linked schedule.

isActiveboolean

Enable or disable the type.

PUT/calendar/appointment-types
curl -X PUT "https://api.vastal.agency/v1/calendar/appointment-types" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "id": "type_abc123",
  "durationMinutes": 45,
  "maxPerDay": 6,
  "isActive": true
}'
200Success
{
"appointmentType": {
  "id": "type_abc123",
  "name": "Tax Consultation",
  "durationMinutes": 45,
  "maxPerDay": 6,
  "isActive": true,
  "updatedAt": "2024-01-20T14:30:00Z"
}
}