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.

PATCH https://incidents.betterstack.com/api/v3/new-relic-integrations/{id}
id string required

The ID of the New Relic integration to update.

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

Content-Type string

application/json

name string or null

Integration name.

escalation_policy_id string or null

ID of the escalation policy for alerts, or null to alert the current on-call person directly.

alerting_rule string

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.

paused boolean

Whether the integration is paused. A paused integration opens no incidents.

call boolean

Whether to call the on-call person. Ignored while an escalation policy is set.

sms boolean

Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.

email boolean

Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.

push boolean

Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.

critical_alert boolean

Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.

team_wait integer or null

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.

200 OK
{
  "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"
    }
  }
}

Returns the updated New Relic integration.

id string

The ID of the New Relic integration.

type string

Always new_relic_integration.

name string or null

Integration name.

escalation_policy_id string or null

ID of the escalation policy for alerts, or null to alert the current on-call person directly.

webhook_url string

The URL to paste into New Relic. Alerts New Relic sends to it open incidents.

alerting_rule string

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.

paused boolean

Whether the integration is paused. A paused integration opens no incidents.

call boolean

Whether to call the on-call person. Ignored while an escalation policy is set.

sms boolean

Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.

email boolean

Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.

push boolean

Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.

critical_alert boolean

Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.

team_wait integer or null

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_id string

Team that owns this integration, such as t123.

team_name string

Name of the team that owns this integration.

Example cURL

Update a New Relic integration
curl --request PATCH \
  --url https://incidents.betterstack.com/api/v3/new-relic-integrations/37 \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "paused": true
}'