Update a specific user notification rule by id
curl --request PUT \
--url https://api.rootly.com/v1/notification_rules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "user_notification_rules",
"attributes": {
"delay": 123,
"position": 123,
"user_email_address_id": "<string>",
"user_call_number_id": "<string>",
"user_sms_number_id": "<string>",
"user_device_id": "<string>",
"enabled_contact_types": [
"email"
]
}
}
}'{
"data": {
"id": "9b858ddc-52a2-4049-98d0-b5583d50b0f4",
"type": "user_notification_rules",
"attributes": {
"user_id": 559,
"delay": 2,
"position": 1,
"user_email_address_id": "2893c38c-1c73-45d4-b2df-90b06ff2dddd",
"user_call_number_id": "0308debc-d221-4615-9b9f-a805b2779fb3",
"user_sms_number_id": null,
"user_device_id": "873e59e4-b585-4b6f-8ea2-a025e20a1ff2",
"enabled_contact_types": [
"device"
],
"created_at": "2025-11-26T20:58:11.571-08:00",
"updated_at": "2025-11-26T20:58:12.415-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
user_notification_rules Show child attributes
Delay after which rule gets triggered
Position of the rule
User email address to which notification to be sent
User phone number to which notification to be sent
User sms number to which notification to be sent
User device to which notification to be sent
Contact types for which notification needs to be enabled
email, sms, call, device, non_critical_device user_notification_rule updated
Show child attributes
Unique ID of the rule
user_notification_rules Show child attributes
Delay after which rule gets triggered
Position of the rule
User email address to which notification to be sent
User phone number to which notification to be sent
User sms number to which notification to be sent
User device to which notification to be sent
Contact types for which notification needs to be enabled
email, sms, call, device, non_critical_device Date of creation
Date of last update
Was this page helpful?
curl --request PUT \
--url https://api.rootly.com/v1/notification_rules/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "user_notification_rules",
"attributes": {
"delay": 123,
"position": 123,
"user_email_address_id": "<string>",
"user_call_number_id": "<string>",
"user_sms_number_id": "<string>",
"user_device_id": "<string>",
"enabled_contact_types": [
"email"
]
}
}
}'{
"data": {
"id": "9b858ddc-52a2-4049-98d0-b5583d50b0f4",
"type": "user_notification_rules",
"attributes": {
"user_id": 559,
"delay": 2,
"position": 1,
"user_email_address_id": "2893c38c-1c73-45d4-b2df-90b06ff2dddd",
"user_call_number_id": "0308debc-d221-4615-9b9f-a805b2779fb3",
"user_sms_number_id": null,
"user_device_id": "873e59e4-b585-4b6f-8ea2-a025e20a1ff2",
"enabled_contact_types": [
"device"
],
"created_at": "2025-11-26T20:58:11.571-08:00",
"updated_at": "2025-11-26T20:58:12.415-08:00"
}
}
}