GET
/
v1
/
schedules
/
{id}
/
shifts
curl --request GET \
  --url 'https://api.rootly.com/v1/schedules/%7Bid%7D/shifts?to=SOME_STRING_VALUE&from=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
{
  "data": [
    {
      "id": "6dca47eb-50b5-4188-a0a8-83cfdffa6538",
      "type": "shifts",
      "attributes": {
        "schedule_id": "e221befe-0bb2-4c54-a3b4-8c3bcc31f0ea",
        "rotation_id": "6b46f78b-360d-4688-a35a-604a305c5797",
        "starts_at": "2025-03-06T22:08:49.000-08:00",
        "ends_at": "2025-03-07T02:08:49.000-08:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "448",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "db9b5100-d0e5-4efd-a24b-ea4c63ca1cd5",
      "type": "shifts",
      "attributes": {
        "schedule_id": "e221befe-0bb2-4c54-a3b4-8c3bcc31f0ea",
        "rotation_id": "1d61fa78-8d4b-4a24-83cb-035f7b49df73",
        "starts_at": "2025-03-07T03:08:50.000-08:00",
        "ends_at": "2025-03-07T07:08:50.000-08:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "452",
            "type": "users"
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

to
string
from
string

Response

200
application/vnd.api+json
schedule shifts found
data
object[]
required

Was this page helpful?