PUT
/
v1
/
override_shifts
/
{id}
curl --request PUT \
  --url https://api.rootly.com/v1/override_shifts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "shifts",
    "attributes": {
      "user_id": 123
    }
  }
}'
{
  "data": {
    "id": "da5e8cb2-23f7-438b-86a2-256493417835",
    "type": "shifts",
    "attributes": {
      "schedule_id": "41f9c9b5-731a-4729-88a1-fc76241c1779",
      "rotation_id": "465cce51-8c16-4917-8655-2a4873b83d99",
      "starts_at": "2025-05-07T18:23:09.000-07:00",
      "ends_at": "2025-05-08T02:23:09.000-07:00",
      "is_override": true
    },
    "relationships": {
      "shift_override": {
        "data": {
          "id": "0bea68bc-54a9-4e22-9605-0577c419b4ed",
          "type": "shift_overrides"
        }
      },
      "user": {
        "data": {
          "id": "346",
          "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

Body

application/vnd.api+json

Response

200
application/vnd.api+json
override shift updated

The response is of type object.