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": "5c1b552e-a388-4af0-8f34-16c3da0f1c92",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 557,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "8b2d3722-e661-4897-b66e-53cbeb3253c5",
      "user_call_number_id": "283f3742-713d-4d70-8cdd-079ace2ac21c",
      "user_sms_number_id": "283f3742-713d-4d70-8cdd-079ace2ac21c",
      "user_device_id": "06971a5b-1f59-43ae-878a-a9643c28a82d",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-10-31T19:00:12.235-07:00",
      "updated_at": "2025-10-31T19:00:12.235-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
data
object
required

Response

user_notification_rule created

data
object
required