Event Types

Create an event type

Creates a new event type for the authenticated organization. A unique slug is required and will be used in booking page URLs. Returns 409 if the slug is already taken.

post/v1/event-types

Request

  • Base URL: https://api.astrocal.dev
  • URL: https://api.astrocal.dev/v1/event-types
  • Auth: HTTP bearer

Request body

titlestring required
slugstring required
descriptionstring
duration_minutesinteger required
buffer_before_minutesinteger
buffer_after_minutesinteger
minimum_notice_minutesinteger
colorstring
price_amountinteger nullable
price_currencystring
reminder_intervalsinteger[]
duration_optionsinteger[] nullable
max_attendeesinteger
booking_capinteger nullable
booking_cap_period'daily' | 'weekly' | 'monthly' | 'total' | 'null' nullable
waitlist_enabledboolean
waitlist_maxinteger
waitlist_ttl_daysinteger
booking_page_enabledboolean
conferencing_provider'zoom' | 'google_meet' | 'microsoft_teams' | 'custom' | 'in_person' | 'null' nullable
custom_meeting_urlstring uri nullable
locationstring nullable

Response

Event type created

idstring uuid required
organization_idstring uuid required
titlestring required
slugstring required
descriptionstring nullable required
duration_minutesinteger required
buffer_before_minutesinteger required
buffer_after_minutesinteger required
minimum_notice_minutesinteger required
colorstring required
timezonestring required
activeboolean required
is_testboolean required
price_amountinteger nullable required
price_currencystring required
reminder_intervalsinteger[] required
duration_optionsinteger[] nullable required
max_attendeesinteger required
assignment_strategy'none' | 'round_robin' | 'least_recent' | 'least_bookings' | 'availability_weighted' required
booking_capinteger nullable required
booking_cap_period'daily' | 'weekly' | 'monthly' | 'total' | 'null' nullable required
bookings_remaininginteger nullable required
booking_countinteger required
waitlist_enabledboolean required
waitlist_maxinteger required
waitlist_ttl_daysinteger required
booking_page_enabledboolean required
conferencing_providerstring nullable required
custom_meeting_urlstring nullable required
locationstring nullable required
created_atstring required
updated_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.