Skip to main content
POST
Create an availability period
A period defining a member’s expected working hours. Members may not be full-time, and their availability can change over time.

Authorizations

Authorization
string
header
required

An API key created in Settings > API Keys. Each key is either Read-Only or Full Access, chosen when the key is created. A Read-Only key can only make GET requests; POST, PATCH, and DELETE requests made with it return a 403 with the message This API key is read-only.

Body

application/json
start
string<date>
required

The start date for the period. Must be in the form YYYY-MM-DD.

memberId
string
required

The member ID (uuid) for this availability period.

hoursPerDay
number[]
required

A list of available hours for each day of the week. The array must contain exactly 7 elements. The first value represents Monday. Each value must be between 0 and 24.

Response

200

hoursPerDay
number[]

A list of available hours for each day of the week. The array size is always 7. The first value represents Monday.

id
string

The unique identifier for the object.

start
string<date>

The start date for the period. Will be in the form YYYY-MM-DD.

createdAt
string<date-time>

The timestamp when the object was created.

isDefault
boolean

Whether this is the default availability period for the member.

end
string<date> | null

The end date for the period. Will be in the form YYYY-MM-DD. null if the period has no end date.