Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/vnd.api+json
Response
user_notification_rule created
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": "9033566b-59a2-4e09-9f51-bf4fed804638",
"type": "user_notification_rules",
"attributes": {
"user_id": 535,
"delay": 2,
"position": 1,
"user_email_address_id": "c8cf4ce3-0b1c-4b2e-9cf1-299e985eb656",
"user_call_number_id": "eab0f7fc-6083-4889-8104-8f11f3164e36",
"user_sms_number_id": "eab0f7fc-6083-4889-8104-8f11f3164e36",
"user_device_id": "4ae513d3-a90e-451c-abeb-082314e07a4e",
"enabled_contact_types": [
"email"
],
"created_at": "2025-10-08T04:40:18.983-07:00",
"updated_at": "2025-10-08T04:40:18.983-07: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": {
"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": "9033566b-59a2-4e09-9f51-bf4fed804638",
"type": "user_notification_rules",
"attributes": {
"user_id": 535,
"delay": 2,
"position": 1,
"user_email_address_id": "c8cf4ce3-0b1c-4b2e-9cf1-299e985eb656",
"user_call_number_id": "eab0f7fc-6083-4889-8104-8f11f3164e36",
"user_sms_number_id": "eab0f7fc-6083-4889-8104-8f11f3164e36",
"user_device_id": "4ae513d3-a90e-451c-abeb-082314e07a4e",
"enabled_contact_types": [
"email"
],
"created_at": "2025-10-08T04:40:18.983-07:00",
"updated_at": "2025-10-08T04:40:18.983-07:00"
}
}
}