Sign in

Create notification rule step

documented

Add a step to a user's notification rule.

POST /v2/users/{userId}/notification-rules/{ruleId}/stepsNotificationsno implementation yet0 runs
No 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}}/steps" \
  -X POST \
  -H "Authorization: GenieKey {{OPSGENIE_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"contact": {"method": "{{$contact_method}}", "to": "{{$contact_to}}"}, "sendAfter": {"timeAmount": {{$sendAfter_timeAmount}}}, "enabled": {{$enabled}}}'