Skip to main content
PUT
/
groups
/
{group_id}
/
on-call-schedules
cURL
curl --request PUT \
  --url https://api.opal.dev/v1/groups/{group_id}/on-call-schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "on_call_schedule_ids": [
    "9546209c-42c2-4801-96d7-9ec42df0f59c",
    "bb0197c0-5ea5-45d9-b3b7-b6c439be6435"
  ]
}'
[
  "bb0197c0-5ea5-45d9-b3b7-b6c439be6435"
]

Authorizations

Authorization
string
header
required

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

Path Parameters

group_id
string<uuid>
required

The ID of the group.

Body

application/json

A list of on call schedule Opal UUIDs. To get the matching remote IDs, use the /on-call-schedules endpoints.

on_call_schedule_ids
string<uuid>[]
required

Response

200 - application/json

The updated on call schedule IDs for the group.

The response is of type string<uuid>[].