Skip to navigation

Update Shift

Renames an existing shift. Shared rules: see Writing data.

  • Only the name can change. A shift’s times are what past attendance was worked out with; to change them, add a new shift and assign it.
  • name is the current shift name, matched exactly (see GET /attendance/shift).
  • new_name must be unique in the company, ignoring upper/lower case and outer spaces, excluding this shift.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringRequired1-100 characters
Current exact shift name.
new_namestringRequired1-100 characters
New shift name. Unique in the company, ignoring case.

Response

The shift was renamed.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error