v1/shift_presets

Create a shift preset. Note that shift presets have to be enabled first in the company profile of the shyftplan account.

Query Params
int32
required
≥ 1

ID of a shyftplan account.

tag_ids[]
array of int32s

Filter an array of Tag ID

tag_ids[]
Body Params
string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

E-mail address of the API user.

string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

Authentication token - can be fetched by login action.

string
required

Name for the shift preset (maximum 256 characters)

string

ShortName for ShiftPreset (max 3 characters)

date-time
required

Start date for Shift Preset

date-time
required

End date for Shift Preset

int32
required

Break duration in minutes

string
required

Color (HEX format, e.g. #FF00FF). Default colors are: #cddbfc, #bcc5d0, #ffd5f6, #e0eafc, #b6b7ba, #d8c7fc, #b8d0d9, #ebcefc, #ffdee9, #d4d9eb, #dbd8dc, #cddbb5, #f7dbad, #d3caba, #f8e6d1, #c4e0c8, #e2d6c9, #c2dcda, #f1ccb7, #e1bdbe - one of these is used if an invalid value is submitted

string

ShiftPreset metadata as json

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json