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": "7df690a4-d43b-4e59-b9e8-8b54a49b84e9",
"type": "user_notification_rules",
"attributes": {
"user_id": 838,
"delay": 2,
"position": 1,
"user_email_address_id": "7c40cd05-527a-4466-b79a-d4417e5c8be0",
"user_call_number_id": "070ec0a9-42c6-4ebb-94b4-9c25c671762c",
"user_sms_number_id": "070ec0a9-42c6-4ebb-94b4-9c25c671762c",
"user_device_id": "feedba09-7a4e-44e3-a469-e68a5dfbc599",
"enabled_contact_types": [
"email"
],
"created_at": "2026-01-07T13:43:01.741-08:00",
"updated_at": "2026-01-07T13:43:01.741-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": "7df690a4-d43b-4e59-b9e8-8b54a49b84e9",
"type": "user_notification_rules",
"attributes": {
"user_id": 838,
"delay": 2,
"position": 1,
"user_email_address_id": "7c40cd05-527a-4466-b79a-d4417e5c8be0",
"user_call_number_id": "070ec0a9-42c6-4ebb-94b4-9c25c671762c",
"user_sms_number_id": "070ec0a9-42c6-4ebb-94b4-9c25c671762c",
"user_device_id": "feedba09-7a4e-44e3-a469-e68a5dfbc599",
"enabled_contact_types": [
"email"
],
"created_at": "2026-01-07T13:43:01.741-08:00",
"updated_at": "2026-01-07T13:43:01.741-08:00"
}
}
}