Create

POST {{baseUrl}}/alerts_synthetics_conditions/policies/{{policy_id}}.json

This API endpoint allows you to create Synthetics conditions for your alert policies.

Note: Admin User’s API Key is required.

See our documentation for a discussion on creating Synthetic conditions.

All fields are required except for “runbook_url”, “enabled” (defaults to false).

name: A title for your condition.

monitor_id: The GUID of the Synthetics monitor to alert on.

runbook_url: Runbook URL to display in notifications (optional).

enabled: The status of your condition (optional).

Request Body

{"synthetics_condition"=>{"enabled"=>"<boolean>", "monitor_id"=>"<string>", "name"=>"<string>", "runbook_url"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;synthetics_condition&quot;:{&quot;enabled&quot;:true,&quot;id&quot;:-64493306,&quot;monitor_id&quot;:&quot;ex nostrud aliqua&quot;,&quot;name&quot;:&quot;adipisicing ipsum&quot;,&quot;runbook_url&quot;:&quot;dolore&quot;}}