Skip to content
ShiftlyDevelopers
Documentation menu

Who can cover a shift

Staff at the shift's location who may work its position and are free: no overlapping shift, no approved or pending leave, and not unavailable. The list is not ranked.

Needs the roster:read permission, depending on the operation. The business sees it as "Rosters and shifts".

Fields

ShiftCover fields
FieldTypeAccessMeaning
employee_idstringRead-onlySomeone free to work the shift.
employment_idstringRead-onlyTheir employment.

Operations

List who can cover a shift

GET/v1/shifts/{id}/covers

Permission: roster:read

200 response
{
  "data": [
    {
      "employee_id": "66f1c2a4b3d9e8f7a6b5c4d3",
      "employment_id": "66f1c2a4b3d9e8f7a6b5c4d3"
    }
  ],
  "has_more": true,
  "next_cursor": "text"
}
Refusals
StatusWhen
400The error's code is invalid_request or range_too_long. The Errors page describes each code.
401The error's code is invalid_token or token_expired. The Errors page describes each code.
403The error's code is origin_not_allowed, permission_denied, not_available, connection_disconnected, connection_suspended or app_suspended. The Errors page describes each code.
404There is nothing at this address, or no such record in this business.
429Too many requests. Retry-After says when to try again.
500Something went wrong at Shiftly. Quote the request id.
503This environment is not set up for partner apps yet.