GET
/
v1
/
schedules
/
{id}
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/schedules/{id}/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "38c878a9-78e2-45f4-991b-894c1cc10c0e",
      "type": "shifts",
      "attributes": {
        "schedule_id": "f51892f5-9fce-4bca-bae2-86546b02136a",
        "rotation_id": "53e7f4a4-6205-4127-985f-e6b6d308385d",
        "starts_at": "2025-03-26T21:24:50.000-07:00",
        "ends_at": "2025-03-27T01:24:50.000-07:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "461",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "a4c54443-b4c3-48e2-90ae-9a90a10834e5",
      "type": "shifts",
      "attributes": {
        "schedule_id": "f51892f5-9fce-4bca-bae2-86546b02136a",
        "rotation_id": "ff42517d-6502-459b-be55-b42688e03cf5",
        "starts_at": "2025-03-27T02:24:51.000-07:00",
        "ends_at": "2025-03-27T06:24:51.000-07:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "465",
            "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?