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": "ad04aa20-0cae-427e-bacb-9e76c543ac65",
"type": "user_notification_rules",
"attributes": {
"user_id": 1075,
"delay": 2,
"position": 1,
"user_email_address_id": "99dcc6fe-d137-417d-b7f7-4e484262bef9",
"user_call_number_id": "b81aa54e-42e4-4629-b322-0bf182788d50",
"user_sms_number_id": "b81aa54e-42e4-4629-b322-0bf182788d50",
"user_device_id": "a46cbb5c-3ab5-43ec-ab4f-176c98e5b1b8",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-02-07T13:47:05.304-08:00",
"updated_at": "2026-02-07T13:47:05.304-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": "ad04aa20-0cae-427e-bacb-9e76c543ac65",
"type": "user_notification_rules",
"attributes": {
"user_id": 1075,
"delay": 2,
"position": 1,
"user_email_address_id": "99dcc6fe-d137-417d-b7f7-4e484262bef9",
"user_call_number_id": "b81aa54e-42e4-4629-b322-0bf182788d50",
"user_sms_number_id": "b81aa54e-42e4-4629-b322-0bf182788d50",
"user_device_id": "a46cbb5c-3ab5-43ec-ab4f-176c98e5b1b8",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-02-07T13:47:05.304-08:00",
"updated_at": "2026-02-07T13:47:05.304-08:00"
}
}
}