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": "bddae620-2140-4ef0-991f-a8f671cdde52",
"type": "user_notification_rules",
"attributes": {
"user_id": 1049,
"delay": 2,
"position": 1,
"user_email_address_id": "ac64ec32-ac17-4005-a006-91404f7d065e",
"user_call_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
"user_sms_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
"user_device_id": "af4107c5-3055-4c21-adda-2e3d5968dcf5",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-01-28T14:52:31.580-08:00",
"updated_at": "2026-01-28T14:52:31.580-08:00"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
user_notification_rule created
Show child attributes
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": "bddae620-2140-4ef0-991f-a8f671cdde52",
"type": "user_notification_rules",
"attributes": {
"user_id": 1049,
"delay": 2,
"position": 1,
"user_email_address_id": "ac64ec32-ac17-4005-a006-91404f7d065e",
"user_call_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
"user_sms_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
"user_device_id": "af4107c5-3055-4c21-adda-2e3d5968dcf5",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-01-28T14:52:31.580-08:00",
"updated_at": "2026-01-28T14:52:31.580-08:00"
}
}
}