For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Shifts

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
beforestringOptional

Shift cursor to fetch results before

Example: a3c2a57e-2797-4159-8700-8ad55bf8150e
lastnumberOptional

The amount of results to fetch before the 'before' cursor

Example: 10
afterstringOptional

Shift cursor to fetch results after

Example: a3c2a57e-2797-4159-8700-8ad55bf8150e
firstnumberOptional

The amount of results to fetch after the 'after' cursor

Example: 10
statusstring · enumOptional

Shift status

Possible values:
endDatestring · date-timeOptional

ISO8601 compatible datetime string to filter on shift until a given date

Example: 2017-07-21T17:32:28Z
startDatestring · date-timeOptional

ISO8601 compatible datetime string to filter on shift from a given date

Example: 2017-07-21T17:32:28Z
updatedAfterstring · date-timeOptional

ISO8601 compatible datetime string

Example: 2017-07-21T17:32:28Z
Responses
200Success
application/json
get/api/v1/shifts
GET /api/v1/shifts HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "edges": [
    {
      "node": {
        "uuid": "3fe3dda5-b6ea-4c0c-a7e5-090e950d84db",
        "startsAt": "2017-07-21T17:32:28Z",
        "endsAt": "2017-07-22T17:32:28Z",
        "type": "d2d",
        "status": "scheduled",
        "updatedAt": "2017-07-21T17:32:28Z",
        "userUuid": "005d5052-4d19-4377-8b45-ff68fd1e6952"
      },
      "cursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171"
    }
  ],
  "pageInfo": {
    "startCursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171",
    "endCursor": "494d74df-6fbc-46a3-811e-1c17230340a1",
    "hasPreviousPage": true,
    "hasNextPage": false
  }
}

Last updated