provider On-Call PUT /api/v2/on-call/users/{user_id}/notification-rules/{rule_id}
@utdk/datadog /api/v2/on-call/users/{user_id}/notification-rules/{rule_id}
Update an On-Call notification rule for a user
Update a notification rule for a user. The authenticated user must be the target user or have the `on_call_admin` permission
user_id path required
The user ID
string
rule_id path required
The rule ID
string
include query
Comma-separated list of included relationships to be returned. Allowed values: `channel`.
string

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateusernotificationrule
PUT/api/v2/on-call/users/{user_id}/notification-rules/{rule_id}
Update a notification rule for a user. The authenticated user must be the target user or have the `on_call_admin` permission

Parameters

required

The user ID

required

The rule ID

Comma-separated list of included relationships to be returned. Allowed values: `channel`.

Input

required

Data for updating an on-call notification rule

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.updateusernotificationrule()