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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"requestId":"in Excepteur aute non ut","took":0,"data":{"id":"dolore","name":"aliquip dolor nisi","actionType":"renotified-alert","order":83782360,"enabled":false}}