EventTypes

Update an event type

Changed on

Updates an event type. Only the fields you send are changed. Changes apply to new bookings only — bookings already on the calendar keep the duration, buffers and location they were made with. Any other field is refused with a 400 parameter_unknown.

patch/event_types/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

object required
name, string

Required on create.

duration_minutes, integer

Length of one appointment. At most 1440 (24 hours), because a slot has to fit inside one day's availability.

buffer_before_minutes, integer
buffer_after_minutes, integer
min_notice_minutes, integer

Earliest a slot can be booked, in minutes from now.

booking_window_days, integer

How far into the future slots are offered. At least 1.

max_per_day, integer nullable

Most bookings per day, counted in the schedule's time zone. null for no limit.

location_type, 'google_meet' | 'zoom' | 'custom_link' | 'physical' | 'phone'
location_details, string nullable

Address, dial-in, or meeting link (ignored for google_meet, which auto-generates a Meet link).

schedule_id, string

The availability schedule to use (sched_…).

reminder_minutes, integer[]

Minutes before the start to remind the attendee. Each entry must be a whole number greater than 0; an invalid entry is a 422 and the existing reminders are kept.

form_id, string nullable

Intake form (form_…) shown at booking; "" detaches.

Example request

{
  "name": "Strategy Call"
}

Response

The updated event type

EventType required
object, string required
id, string required
name, string required
slug, string required
duration_minutes, integer required
buffer_before_minutes, integer required
buffer_after_minutes, integer required
min_notice_minutes, integer required
booking_window_days, integer required
max_per_day, integer nullable required
reminder_minutes, number[] required
location_type, 'google_meet' | 'zoom' | 'custom_link' | 'physical' | 'phone' required
location_details, string nullable required
created_at, string date-time required
updated_at, string date-time required
form_id, string nullable required
form, union

ID by default, full object when expanded

free, boolean required
schedule_id, string nullable required
experience_id, string required
product_id, string nullable required
price_variants, PriceVariant[] required

Changes

    • warning

      the duration_minutes request property's max was set to 1440.00

    • warning

      the booking_window_days request property's min was set to 1.00

    • warning

      the duration_minutes request property's min was set to 1.00

    5 more changes in this revision