Update an outgoing PagerDuty integration
Update a PagerDuty integration's name, key, or severity. Only provide the fields you want to change.
The ID of the outgoing PagerDuty integration to update.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
application/json
Integration name.
PagerDuty integration key, also called the routing key.
PagerDuty severity sent with the event. Possible values: info, warning, error, critical.
Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it.
Returns the updated outgoing PagerDuty integration.
{
"data": {
"id": "123456789",
"type": "pagerduty_integration",
"attributes": {
"name": "PagerDuty alerts",
"key": "routing-key-placeholder",
"severity": "warning",
"notify_alongside_primary_responder": true,
"team_id": "t123",
"team_name": "Production"
}
}
}
The API token is missing or invalid.
{
"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"
}
The token is read-only, your role doesn't include Manage on Monitors, heartbeats, integrations, or the token can't be used for this API.
{
"errors": "This API token is read-only and cannot be used for write operations."
}
The outgoing PagerDuty integration doesn't exist, or the token can't access it.
Validation failed or an attribute is unknown.
The ID of the outgoing PagerDuty integration.
Always pagerduty_integration.
Integration name.
PagerDuty integration key, also called the routing key.
PagerDuty severity sent with the event. Possible values: info, warning, error, critical.
Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it.
Team that owns this integration, such as t123.
Name of the team that owns this integration.
Example cURL