Create an alert

POST {{baseUrl}}/alerts/create

Create a new alert

Request Body

{"alert_type"=>"low_remaining_days_in_plan_reached", "name"=>"<string>", "threshold"=>"<number>", "uniqueness_key"=>"<string>", "credit_type_id"=>"<uuid>", "customer_id"=>"<uuid>", "plan_id"=>"<uuid>", "billable_metric_id"=>"<uuid>", "credit_grant_type_filters"=>["<string>", "<string>"], "evaluate_on_create"=>"<boolean>", "custom_field_filters"=>[{"entity"=>"Contract", "key"=>"<string>", "value"=>"<string>"}, {"entity"=>"Commit", "key"=>"<string>", "value"=>"<string>"}], "group_key_filter"=>{"key"=>"<string>", "value"=>"<string>"}, "invoice_types_filter"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;}}