Remove an on-call schedule
Delete an on-call schedule permanently, including its rotation and events. Deleting a schedule can't be undone.
DELETE
https://incidents.betterstack.com/api/v3/on-call-schedules/{id}
id
string
required
ID of the on-call schedule, as List on-call schedules returns it.
team_id
string
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Authorization
string
required
Bearer $TOKEN
204 No Content
401 Unauthorized
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
403 Forbidden
{
"errors": "This API token is read-only and cannot be used for write operations."
}
404 Not Found
The on-call schedule is deleted. The response has no body.
The API token is missing or invalid.
The token is read-only, your role doesn't allow the action, or the token can't be used for this API.
The on-call schedule doesn't exist, or the token can't access it.
Example cURL
Delete an on-call schedule