Skip to content

List templates

Returns all of the authenticated user’s shift templates.

GET
/v1/templates
curl --request GET \
--url https://api.shiftsync.app/v1/templates \
--header 'Authorization: Bearer <token>'

The caller’s templates

Media typeapplication/json
object
items
required
Array
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
title
required
string
shortTitle
required
string
notes
string
colorId
required
integer
>= -9007199254740991 <= 9007199254740991
icon
One of:
object
type
required
string
Allowed values: icon
name
required
string
Allowed values: moon sunrise sun sunset holiday-umbrella
userId
required
integer
>= -9007199254740991 <= 9007199254740991
visibility
required
string
Allowed values: public private hidden
payRateMinor
integer
nullable >= -9007199254740991 <= 9007199254740991
Any of:
object
allDay
required
boolean
Example
{
"items": [
{
"id": 0,
"title": "string",
"shortTitle": "string",
"notes": "string",
"colorId": 0,
"icon": {
"type": "icon",
"name": "moon"
},
"userId": 0,
"visibility": "public",
"payRateMinor": 0,
"allDay": true
}
]
}