Skip to main content
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": "a394ac1a-4c6f-49e1-9342-8273ceaf63ad",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 559,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "993e5b25-9567-4078-af05-3452327b488c",
      "user_call_number_id": "441b92f4-9dab-49be-af3e-f96d66d12cd1",
      "user_sms_number_id": "441b92f4-9dab-49be-af3e-f96d66d12cd1",
      "user_device_id": "08fa5679-a195-4b9d-840a-d7733d711565",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-11-27T00:13:22.940-08:00",
      "updated_at": "2025-11-27T00:13:22.940-08: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
data
object
required

Response

user_notification_rule created

data
object
required