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": {
"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": "b50cc55d-52dd-4612-bf5e-a4eb68980f94",
"type": "user_notification_rules",
"attributes": {
"user_id": 493,
"delay": 2,
"position": 1,
"user_email_address_id": "f975b35f-55bf-4eca-8d9a-cdf5c3f42a81",
"user_call_number_id": "47cdeb96-187f-4e85-beca-ae831ee06367",
"user_sms_number_id": "47cdeb96-187f-4e85-beca-ae831ee06367",
"user_device_id": "3a9cdf89-a134-474d-9c06-6268c45ec702",
"enabled_contact_types": [
"email"
],
"created_at": "2025-08-18T10:39:11.194-07:00",
"updated_at": "2025-08-18T10:39:11.194-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
user_notification_rule created
The response is of type object
.
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": {
"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": "b50cc55d-52dd-4612-bf5e-a4eb68980f94",
"type": "user_notification_rules",
"attributes": {
"user_id": 493,
"delay": 2,
"position": 1,
"user_email_address_id": "f975b35f-55bf-4eca-8d9a-cdf5c3f42a81",
"user_call_number_id": "47cdeb96-187f-4e85-beca-ae831ee06367",
"user_sms_number_id": "47cdeb96-187f-4e85-beca-ae831ee06367",
"user_device_id": "3a9cdf89-a134-474d-9c06-6268c45ec702",
"enabled_contact_types": [
"email"
],
"created_at": "2025-08-18T10:39:11.194-07:00",
"updated_at": "2025-08-18T10:39:11.194-07:00"
}
}
}