Shifts
get
Authorizations
Query parameters
beforestringOptionalExample:
Shift cursor to fetch results before
a3c2a57e-2797-4159-8700-8ad55bf8150e
lastnumberOptionalExample:
The amount of results to fetch before the 'before' cursor
10
afterstringOptionalExample:
Shift cursor to fetch results after
a3c2a57e-2797-4159-8700-8ad55bf8150e
firstnumberOptionalExample:
The amount of results to fetch after the 'after' cursor
10
statusstring · enumOptionalExample:
Shift status
scheduled
Possible values: endDatestring · date-timeOptionalExample:
ISO8601 compatible datetime string to filter on shift until a given date
2017-07-21T17:32:28Z
startDatestring · date-timeOptionalExample:
ISO8601 compatible datetime string to filter on shift from a given date
2017-07-21T17:32:28Z
updatedAfterstring · date-timeOptionalExample:
ISO8601 compatible datetime string
2017-07-21T17:32:28Z
Responses
200Success
application/json
400
Bad request. Response body shows what the problem is.
401
Service account not properly authenticated
403
Service account forbids executing this action
default
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?