Skip to content

Get a template

Returns a single shift template by its numeric id.

GET
/v1/templates/{id}
curl --request GET \
--url https://api.shiftsync.app/v1/templates/1 \
--header 'Authorization: Bearer <token>'
id
required
number

A single template

Media typeapplication/json
object
item
required
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
{
"item": {
"id": 0,
"title": "string",
"shortTitle": "string",
"notes": "string",
"colorId": 0,
"icon": {
"type": "icon",
"name": "moon"
},
"userId": 0,
"visibility": "public",
"payRateMinor": 0,
"allDay": true
}
}