GET
/
v1
/
schedules
/
{id}
/
shifts
curl --request GET \
  --url https://api.rootly.com/v1/schedules/{id}/shifts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "01d6ffd4-e180-4d1c-b4ad-2a3c30b5616a",
      "type": "shifts",
      "attributes": {
        "schedule_id": "458a3424-78d1-4d70-b140-1f2a7a7349ec",
        "rotation_id": "d60025fe-3b1a-4109-9b73-b4604d78ac0b",
        "starts_at": "2025-04-18T07:52:37.000-07:00",
        "ends_at": "2025-04-18T11:52:37.000-07:00",
        "is_override": true
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "436",
            "type": "users"
          }
        }
      }
    },
    {
      "id": "929ea06b-a748-40f4-9765-b3de6d34283c",
      "type": "shifts",
      "attributes": {
        "schedule_id": "458a3424-78d1-4d70-b140-1f2a7a7349ec",
        "rotation_id": "fa3472ee-92c3-4a9d-8d1c-77593e38e597",
        "starts_at": "2025-04-18T12:52:38.000-07:00",
        "ends_at": "2025-04-18T16:52:38.000-07:00",
        "is_override": false
      },
      "relationships": {
        "shift_override": {
          "data": null
        },
        "user": {
          "data": {
            "id": "440",
            "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?