Update notification rule
documentedUpdate a notification rule.
PATCH /v2/users/{userId}/notification-rules/{ruleId}Notificationsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.opsgenie.com/v2/users/{{$user_id}}/notification-rules/{{$rule_id}}" \
-X PATCH \
-H "Authorization: GenieKey {{OPSGENIE_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "criteria": {{$criteria}}, "notificationTime": {{$notificationTime}}, "timeRestriction": {{$timeRestriction}}, "schedules": {{$schedules}}, "steps": {{$steps}}, "repeat": {{$repeat}}, "order": {{$order}}, "enabled": {{$enabled}}}'