v1/tags/{id}

Update existing shift tags.

Path Params
int32
required
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 | null

ID of a Location. Set this to null to turn a location-specific shift tag into a global shift tag.

string

Name of the shift tag. Must be unique, or the name of a global shift tag to replace all location-specific shift tags of the same name.

string

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

boolean

Boolean value to use when changing the name of a global shift tag, or when changing location_id to null for a location-specific shift tag (thereby turning it into a global shift tag).
Available options:

  • true: Replace any other existing location-specific shift tag of the same name. This will also set the global shift tag on all shifts that use a former location-specific shift tag of this name.
  • false: Only turn the location-specific shift tag into a global shift tag if no (other) 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 update happens.
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