Update a New Relic integration
Update a New Relic integration's settings. Change its name, escalation policy, channels, timing or paused state. Only provide the fields you want to change.
The ID of the New Relic 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.
ID of the escalation policy for alerts, or null to alert the current on-call person directly.
Which New Relic alert levels open incidents.
Valid values:alert: Opens an incident for alerts only.alert_and_warn: Opens an incident for alerts and warnings.
Whether the integration is paused. A paused integration opens no incidents.
Whether to call the on-call person. Ignored while an escalation policy is set.
Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.
Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.
Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.
Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.
Seconds to wait before escalating to the whole team. 0 alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.
{
"data": {
"id": "123456789",
"type": "new_relic_integration",
"attributes": {
"name": "New Relic alerts",
"escalation_policy_id": "73",
"webhook_url": "https://incidents.betterstack.com/api/v1/new-relic/webhook/token-placeholder",
"alerting_rule": "alert",
"paused": false,
"call": false,
"sms": true,
"email": true,
"push": false,
"critical_alert": false,
"team_wait": 180,
"team_id": "t123",
"team_name": "Production"
}
}
}
{
"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"
}
{
"errors": "This API token is read-only and cannot be used for write operations."
}
{
"errors": "Please upgrade your account before using these attributes",
"unauthorized_attributes": [
"escalation_policy_id",
"call",
"sms"
]
}
Returns the updated New Relic integration.
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 integration was unpaused, but the plan no longer includes New Relic integrations.
The New Relic integration doesn't exist, or the token can't access it.
Validation failed, an attribute is unknown, alerting_rule isn't alert or alert_and_warn, or the plan doesn't include the escalation policy or the call, sms, push or critical_alert channel that was set. The attributes the plan doesn't include are listed in unauthorized_attributes. Nothing is saved. Turning a feature off, or sending the value already set, always works.
The ID of the New Relic integration.
Always new_relic_integration.
Integration name.
ID of the escalation policy for alerts, or null to alert the current on-call person directly.
The URL to paste into New Relic. Alerts New Relic sends to it open incidents.
Which New Relic alert levels open incidents.
Valid values:alert: Opens an incident for alerts only.alert_and_warn: Opens an incident for alerts and warnings.
Whether the integration is paused. A paused integration opens no incidents.
Whether to call the on-call person. Ignored while an escalation policy is set.
Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.
Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.
Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.
Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.
Seconds to wait before escalating to the whole team. 0 alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.
Team that owns this integration, such as t123.
Name of the team that owns this integration.
Example cURL