Create Notification Rule

POST {{baseUrl}}/v2/users/:identifier/notification-rules

Creates a new notification rule

Request Body

{"name"=>"<string>", "actionType"=>"create-alert", "enabled"=>"<boolean>", "criteria"=>{"type"=>"<string>"}, "notificationTime"=>["<string>", "<string>"], "timeRestriction"=>{"type"=>"<string>"}, "schedules"=>[{"type"=>"<string>", "id"=>"<string>", "name"=>"<string>"}, {"type"=>"<string>", "id"=>"<string>", "name"=>"<string>"}], "order"=>"<integer>", "steps"=>[{"contact"=>{"method"=>"<string>", "to"=>"<string>"}, "enabled"=>"<boolean>", "sendAfter"=>{"timeAmount"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "timeUnit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, {"contact"=>{"method"=>"<string>", "to"=>"<string>"}, "enabled"=>"<boolean>", "sendAfter"=>{"timeAmount"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "timeUnit"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}], "repeat"=>{"loopAfter"=>"<integer>", "enabled"=>"<boolean>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;requestId&quot;:&quot;in Excepteur aute non ut&quot;,&quot;took&quot;:0,&quot;data&quot;:{&quot;id&quot;:&quot;dolore&quot;,&quot;name&quot;:&quot;aliquip dolor nisi&quot;,&quot;actionType&quot;:&quot;renotified-alert&quot;,&quot;order&quot;:83782360,&quot;enabled&quot;:false}}