Create shift

Create a shift in the oldest active workspace that the token has access to. If you need to specify the workspace, we recommend using the Create team shift endpoint instead.

Required scope: shifts:write

Body Params

Shift to create details

string
required

Name of the shift

string
enum
required

Color of the shift

string
required

A timezone name as defined in the IANA tz database

times
object
required

The shift intervals per day of the week

teammate_ids
array of objects
required

List of all the teammate ids who will be part of this shift. Alternatively, you can supply emails as a resource alias.

teammate_ids*
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Choose an example:
application/json