v1/tags

Create a new tag to be used on shifts. The shift tag name must be globally unique, so you cannot create a location-specific shift tag if a shift tag of the same name (global or location-specific for any location) exists already. You can replace an existing location-specific shift tag by creating a global shift tag of the same name.

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.

int32
required
≥ 1

ID of a shyftplan account.

int32

ID of a location. To create a global tag, omit this parameter (or set it to null). Required if you want to create a location-specific shift-tag.

string
required

Name

string

Color (HEX format, e.g. #FF00FF)

boolean
Defaults to false

Boolean value to use when creating a global shift tag. Requires super-admin rights. When using it while creating a location-specific shift tag, this parameter has to be omitted or set to false. Available options:

  • true: Replace an existing location-specific shift tag of the same name. This will also replace replace the old tag with the new, global one on all shifts that use the old tag.
  • false: Only create the global shift tag if no location-specific shift tag of this name exists. Will respond with an error in case a location-specific shift tag exists. In this case, no shift tag is created.
string

Tag metadata json

Responses

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