Schedules

List on-call schedules.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Query parameters
start-indexinteger · int32Optional

an integer specifying the starting point (beginning with 0) when paging through a list of entities

Default: 0
max-resultsinteger · int32 · max: 20Optional

the maximum number of results when paging through a list of schedules.

Default: 20
Responses
get
/schedules
200

a list of on-call schedules

Create a new on-call schedule.

post
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Query parameters
abort-on-gapsbooleanOptional

Used for static schedules to prevent creating schedules with gaps

Body
idinteger · int64Optional
namestringOptional
timezonestring · enumOptionalPossible values:
typestring · enumOptionalPossible values:
showGapsbooleanOptional
defaultShiftDurationstring · P7DOptional
Responses
post
/schedules
201

The created on-call schedule

Get the on-call schedule with the specified id.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Query parameters
Responses
get
/schedules/{id}
200

The schedule object. (scheduleLayers [only available for RECURRING schedules], shifts [only available for STATIC schedules])

Update an on-call schedule.

put
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Query parameters
abort-on-gapsbooleanOptional

Used for static schedules to prevent updating schedules with gaps

Body
idinteger · int64Optional
namestringOptional
timezonestring · enumOptionalPossible values:
typestring · enumOptionalPossible values:
showGapsbooleanOptional
defaultShiftDurationstring · P7DOptional
Responses
put
/schedules/{id}
200

The updated on-call schedule

Delete the on-call schedule with the specified id.

delete
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Responses
204

empty response

delete
/schedules/{id}
204

empty response

No content

Get shifts for the specified schedule and date range.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Query parameters
fromstring · date-timeOptional

from date, default is start of last month

untilstringOptional

until date, default is from date plus 3 months

exclude-overridesbooleanOptional

if true, shifts won't include overrides

Default: false
Responses
get
/schedules/{id}/shifts
200

the shift objects

Get overrides for the specified schedule.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Responses
get
/schedules/{id}/overrides
200

the shift objects

Add an override shift to a schedule.

put
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Body
endstring · date-timeOptional
startstring · date-timeOptional
Responses
put
/schedules/{id}/overrides
200

the overwritten schedule object

Get the user (wrapped in a shift object) on-call for the specified schedule.

get
Authorizations
AuthorizationstringRequired

The Bearer API key of your user more info.

Path parameters
idnumberRequired

entity ID

Responses
204

if no user is on-call

get
/schedules/{id}/user-on-call

Last updated

Was this helpful?