Create a bookable target
Only for a connection whose capabilities.roarkOwnsBookingPolicy is true. A calendar with no scheduling of its own has nothing an agent can be pointed at, so the thing a calendar tool books into is created here: the calendar, how long an appointment runs, and the hours it is offered in. The policy and the hours are written together, because a target with no hours offers nothing. Refused if the calendar is one the account can only read.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Calendar connection ID
Body
A bookable target to create on a connection whose provider has no scheduling of its own.
Unique within the connection, and how a config file refers to this target. Letters, digits, spaces, _ or -.
1 - 120"Front desk"
The calendar to write appointments to, from GET /v1/integrations/calendar/{connectionId}/calendars. primary is accepted and stored as the account’s own id.
1"clinic@example.com"
x <= 144030
Dead time before an appointment, counted as busy when a slot is offered. Defaults to 0.
0 <= x <= 14400 <= x <= 1440How soon from now an appointment may be made. Defaults to 120.
0 <= x <= 525600How far ahead appointments may be made. Defaults to 30.
x <= 365The grid slots are offered on. Defaults to the duration, which gives back-to-back appointments.
x <= 1440Whether an all-day event closes the day. Defaults to true, because a calendar marks all-day events free unless their creator says otherwise and a public holiday entered as one would otherwise be bookable.
The windows of the week appointments are offered in. Omit to adopt Monday to Friday, 09:00 to 17:00. A target with no windows offers nothing at all, which reads to a caller as a permanently full diary.
1 - 42 elementsResponse
The target, in the same shape GET /targets lists.
Something on a connected account an agent can be pointed at: a Cal.com event type, or a bookable target on a calendar whose booking policy Roark owns.