Create

POST {{baseUrl}}/alerts_policies.json

This API endpoint works with new Alerts on alerts.newrelic.com.

This Alerts API endpoint creates a policy associated with your New Relic account.

Note: Admin User’s API Key is required.

Rollup stategy options:

  • PER_POLICY
  • PER_CONDITION
  • PER_CONDITION_AND_TARGET

See our documentation for a discussion on using the REST API for creating new policies.

Request Body

{"policy"=>{"incident_preference"=>"<string>", "name"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;policy&quot;:{&quot;created_at&quot;:-24781813,&quot;id&quot;:-77318469,&quot;incident_preference&quot;:&quot;dolor mollit dolore&quot;,&quot;name&quot;:&quot;officia labore nisi nulla&quot;,&quot;updated_at&quot;:-45615327}}