Notification rules GET api is only returning high urgency rules

I tested using https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1users~1{id}~1notification_rules~1{notification_rule_id}/get and the response did not contain any of my ‘low’ urgency rules.

Thanks

Use this endpoint to see them all: https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1users~1{id}~1notification_rules/get

Hi Doug,

I tested with the endpoint you provided again and still the response does not contain any of my low urgency rules.

Hi Rahul,

Thanks for reaching out to us about this.

If you can please reach out to support@pagerduty.com with the issue that you are having, we will be happy to investigate this for you.

Please let us know in your emails if you have further questions as well.

Hi Rahul,

To see low urgency notification rules, you’ll want to add the query parameter urgency=low, like https://api.pagerduty.com/users/{id}/notification_rules?urgency=low. This means you’ll make one request to see high urgency notification rules, and another request to see low urgency rules.

Hope this helps!
Martin

1 Like