Skip to main content
POST
/
on-call-schedules
cURL
curl --request POST \
  --url https://api.opal.dev/v1/on-call-schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "third_party_provider": "PAGER_DUTY",
  "remote_id": "PNZNINN"
}'
{
  "on_call_schedule_id": "50d5e9f6-f23f-4d5a-ae91-b2640cf3975e",
  "third_party_provider": "PAGER_DUTY",
  "remote_id": "P7OWH2R",
  "name": "Customer Support On-Call"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

The OnCallSchedule object to be created.

CreateOnCallScheduleInfo Object

Description

The CreateOnCallScheduleInfo object is used to describe the on call schedule object to be created.

third_party_provider
enum<string>
required

The third party provider of the on call schedule.

Available options:
OPSGENIE,
PAGER_DUTY
Example:

"PAGER_DUTY"

remote_id
string
required

The remote ID of the on call schedule

Example:

"PNZNINN"

Response

200 - application/json

The on call schedule that was created.

OnCallSchedule Object

Description

The OnCallSchedule object is used to represent an on call schedule.

Usage Example

Update a groups on call schedule from the UPDATE Groups endpoint.

on_call_schedule_id
string<uuid>

The ID of the on-call schedule.

Example:

"50d5e9f6-f23f-4d5a-ae91-b2640cf3975e"

third_party_provider
enum<string>

The third party provider of the on call schedule.

Available options:
OPSGENIE,
PAGER_DUTY
Example:

"PAGER_DUTY"

remote_id
string

The remote ID of the on call schedule

Example:

"P7OWH2R"

name
string

The name of the on call schedule.

Example:

"Customer Support On-Call"