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": "d9476a1d-d614-447c-92f2-8bfd3158f4d7",
"type": "user_notification_rules",
"attributes": {
"user_id": 1149,
"delay": 2,
"position": 1,
"user_email_address_id": "59a7978b-a3d9-4e49-ab86-193626f8064c",
"user_call_number_id": "d8be98d1-3f2a-479b-957e-666e2cced14d",
"user_sms_number_id": "d8be98d1-3f2a-479b-957e-666e2cced14d",
"user_device_id": "c9a0fd62-91ab-44f0-b751-6ff01f1f7458",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-02-19T19:14:53.068-08:00",
"updated_at": "2026-02-19T19:14:53.068-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": "d9476a1d-d614-447c-92f2-8bfd3158f4d7",
"type": "user_notification_rules",
"attributes": {
"user_id": 1149,
"delay": 2,
"position": 1,
"user_email_address_id": "59a7978b-a3d9-4e49-ab86-193626f8064c",
"user_call_number_id": "d8be98d1-3f2a-479b-957e-666e2cced14d",
"user_sms_number_id": "d8be98d1-3f2a-479b-957e-666e2cced14d",
"user_device_id": "c9a0fd62-91ab-44f0-b751-6ff01f1f7458",
"enabled_contact_types": [
"email"
],
"notification_type": "quiet",
"created_at": "2026-02-19T19:14:53.068-08:00",
"updated_at": "2026-02-19T19:14:53.068-08:00"
}
}
}