Creates a new user notification rule from provided data
curl --request POST \
--url https://api.rootly.com/v1/users/{user_id}/notification_rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "user_notification_rules",
"attributes": {
"enabled_contact_types": [
"email"
],
"delay": 123,
"position": 123,
"user_email_address_id": "<string>",
"user_call_number_id": "<string>",
"user_sms_number_id": "<string>",
"user_device_id": "<string>"
}
}
}
'{
"data": {
"id": "88d84073-885b-44c9-bd36-5da7efe971b8",
"type": "user_notification_rules",
"attributes": {
"user_id": 608,
"delay": 2,
"position": 1,
"user_email_address_id": "8e5b3981-2678-467d-9d70-13c05a5389a3",
"user_call_number_id": "3d1f1f91-0c69-48ee-baf2-41246604810a",
"user_sms_number_id": "3d1f1f91-0c69-48ee-baf2-41246604810a",
"user_device_id": "5ca67f70-88dd-4203-a9d4-7dec18985c33",
"enabled_contact_types": [
"email"
],
"created_at": "2025-12-05T09:08:19.083-08:00",
"updated_at": "2025-12-05T09:08:19.083-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
Contact types for which notification needs to be enabled
email, sms, call, device, non_critical_device 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
user_notification_rule created
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 POST \
--url https://api.rootly.com/v1/users/{user_id}/notification_rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "user_notification_rules",
"attributes": {
"enabled_contact_types": [
"email"
],
"delay": 123,
"position": 123,
"user_email_address_id": "<string>",
"user_call_number_id": "<string>",
"user_sms_number_id": "<string>",
"user_device_id": "<string>"
}
}
}
'{
"data": {
"id": "88d84073-885b-44c9-bd36-5da7efe971b8",
"type": "user_notification_rules",
"attributes": {
"user_id": 608,
"delay": 2,
"position": 1,
"user_email_address_id": "8e5b3981-2678-467d-9d70-13c05a5389a3",
"user_call_number_id": "3d1f1f91-0c69-48ee-baf2-41246604810a",
"user_sms_number_id": "3d1f1f91-0c69-48ee-baf2-41246604810a",
"user_device_id": "5ca67f70-88dd-4203-a9d4-7dec18985c33",
"enabled_contact_types": [
"email"
],
"created_at": "2025-12-05T09:08:19.083-08:00",
"updated_at": "2025-12-05T09:08:19.083-08:00"
}
}
}