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": "971670fc-d1ec-4f1d-bff8-29e2e632b188",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 493,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "0e46729e-7543-435c-b38b-c749f3bcfa0e",
      "user_call_number_id": "f8943fde-ec19-4afd-8bc9-ab6c3f2a9321",
      "user_sms_number_id": "f8943fde-ec19-4afd-8bc9-ab6c3f2a9321",
      "user_device_id": "18bf0a27-7430-4ca2-b623-b4962b3ec83f",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-07-29T05:05:16.957-07:00",
      "updated_at": "2025-07-29T05:05:16.957-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.