Update notification rule
documentedUpdate a notification rule.
PATCH /v2/users/{userId}/notification-rules/{ruleId}Notificationsno implementation yet0 runsInput
user_id*
User ID
e.g. 4b26961a-a837-49d2-a1fe-0973013e3c3b
rule_id*
Rule ID
e.g. 6250e423-fd5e-451c-8573-a20c61fb9872
name
Notification Rule Name
e.g. Updated preference
criteria
Criteria (JSON)
{ "type": "match-all" }
notificationTime*
Notification Time (JSON array)
["just-before", "1-hour-ago"]
timeRestriction
Time Restriction (JSON)
{ "type": "time-of-day", "restriction": { "startHour": 3, "startMin": 15, "endHour": 5, "endMin": 30 } }
schedules
Schedules (JSON array)
[{ "name": "schedule_test", "type": "schedule" }]
steps
Steps (JSON array)
[{ "contact": { "method": "email", "to": "user@example.com" }, "sendAfter": { "timeAmount": 1 }, "enabled": true }]
repeat
Repeat (JSON)
{ "loopAfter": 2 }
order
Order
1
enabled
Enabled
true
Calls Opsgenie as you (your API key is your account); keychains.dev holds the credentials.