Skip to main content
POST
cURL

What you send

Only name is required.
  • Times use the 24-hour HH:MM format, in the timezone of the schedule.
  • A weekday you leave out is closed. The example above is open on two days only.
  • Two periods in one day make a break between them. They must not overlap, and end must be after start.
  • Without timezone, the schedule takes your account timezone.
  • Without hours, the schedule opens Monday to Friday, 09:00 to 17:00.

What happens next

The response contains the new schedule with its ID. Use that ID with Update Event Type to make an event type follow it. A new schedule is not your default one, so it changes nothing until an event type points at it. The one exception is the first schedule on an account, which becomes the default.

Authorizations

Authorization
string
header
required

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

Body

application/json

Availability schedule to create

name
string
required

The name of the schedule

Maximum string length: 255
Example:

"Working hours"

timezone
string

IANA timezone the hours are expressed in. Defaults to your account timezone.

Example:

"Europe/Belgrade"

hours
object

Open hours per weekday, in the schedule timezone. A weekday you leave out is closed. Defaults to monday to friday, 09:00 to 17:00.

Example:

Response

201 - application/json

Availability created

success
boolean
required

Indicates whether the request was successful

Example:

true

data
object
required