Shifts

get
Authorizations
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

Example: scheduledPossible 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
GET /api/v1/shifts HTTP/1.1
Host: 
Authorization: Bearer jwt
Accept: */*
{
  "edges": [
    {
      "node": {
        "uuid": "3fe3dda5-b6ea-4c0c-a7e5-090e950d84db",
        "date": "2017-07-21T17: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

Was this helpful?