Skip to content

Create a shift

Creates a shift for the authenticated user. endDate must be on or after startDate.

POST
/v1/shifts
curl --request POST \
--url https://api.shiftsync.app/v1/shifts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "startDate": "2026-01-01T09:00:00.000Z", "endDate": "2026-01-01T09:00:00.000Z", "isSplit": true, "splitEndTime": "2026-01-01T09:00:00.000Z", "splitStartTime": "2026-01-01T09:00:00.000Z", "templateId": 0, "tempId": "string", "notes": "string", "visibility": "public" }'
Media typeapplication/json
object
startDate
required
string format: date-time
endDate
required
string format: date-time
isSplit
boolean
splitEndTime
string format: date-time
splitStartTime
string format: date-time
templateId
required
integer
>= -9007199254740991 <= 9007199254740991
tempId
required
string
notes
string
visibility
required
string
Allowed values: public private hidden
Example
{
"startDate": "2026-01-01T09:00:00.000Z",
"endDate": "2026-01-01T09:00:00.000Z",
"isSplit": true,
"splitEndTime": "2026-01-01T09:00:00.000Z",
"splitStartTime": "2026-01-01T09:00:00.000Z",
"templateId": 0,
"tempId": "string",
"notes": "string",
"visibility": "public"
}

The created shift

Media typeapplication/json
object
item
required
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
startDate
required
string format: date-time
endDate
required
string format: date-time
isSplit
boolean
splitEndTime
string format: date-time
splitStartTime
string format: date-time
userId
required
integer
>= -9007199254740991 <= 9007199254740991
templateId
required
integer
>= -9007199254740991 <= 9007199254740991
tempId
required
string
notes
string
visibility
required
string
Allowed values: public private hidden
seriesId
integer
>= -9007199254740991 <= 9007199254740991
Example
{
"item": {
"id": 0,
"startDate": "2026-01-01T09:00:00.000Z",
"endDate": "2026-01-01T09:00:00.000Z",
"isSplit": true,
"splitEndTime": "2026-01-01T09:00:00.000Z",
"splitStartTime": "2026-01-01T09:00:00.000Z",
"userId": 0,
"templateId": 0,
"tempId": "string",
"notes": "string",
"visibility": "public",
"seriesId": 0
}
}