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
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"policy":{"created_at":-24781813,"id":-77318469,"incident_preference":"dolor mollit dolore","name":"officia labore nisi nulla","updated_at":-45615327}}