POST
/
v1
/
users
/
{user_id}
/
notification_rules
Creates an user notification rule
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": "83ba838a-dfee-42c8-8eb6-80a6032062e1",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 509,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "5a497f7b-1c76-44a6-a01b-c038c3c5b381",
      "user_call_number_id": "bbf632e3-600a-4903-9bde-05c3bab8d49a",
      "user_sms_number_id": "bbf632e3-600a-4903-9bde-05c3bab8d49a",
      "user_device_id": "0760373a-0dff-475d-aaad-1c6586329aa4",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-09-07T18:25:17.614-07:00",
      "updated_at": "2025-09-07T18:25:17.614-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

Body

application/vnd.api+json

Response

201
application/vnd.api+json

user_notification_rule created

The response is of type object.