v1
latestOpenAPI 3.0.02026-07-26254134307.1 KBShifts
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
post/shifts
Request body
Example request
{
"times": {
"mon": {
"start": "09:00",
"end": "17:00"
},
"tue": {
"start": "09:00",
"end": "17:00"
},
"wed": {
"start": "09:00",
"end": "17:00"
},
"thu": {
"start": "09:00",
"end": "17:00"
},
"fri": {
"start": "09:00",
"end": "17:00"
},
"sat": {
"start": "09:00",
"end": "17:00"
},
"sun": {
"start": "09:00",
"end": "17:00"
}
}
}Response
A shift
Example response
{
"_links": {
"self": "https://yourCompany.api.frontapp.com/shifts/shf_1bri",
"related": {
"teammates": "https://yourCompany.api.frontapp.com/shifts/shf_1bri/teammates",
"owner": "https://yourCompany.api.frontapp.com/teams/tim_4kxji"
}
},
"id": "shf_1bri",
"name": "Scranton Business Park shifts",
"color": "green",
"timezone": "America/New_York",
"times": {
"mon": {
"start": "09:00",
"end": "17:00"
},
"tue": {
"start": "09:00",
"end": "17:00"
},
"wed": {
"start": "09:00",
"end": "17:00"
},
"thu": {
"start": "09:00",
"end": "17:00"
},
"fri": {
"start": "09:00",
"end": "17:00"
},
"sat": {
"start": "09:00",
"end": "17:00"
},
"sun": {
"start": "09:00",
"end": "17:00"
}
},
"created_at": 1606943265.298,
"updated_at": 1701878404.43
}