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": {
      "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": "bddae620-2140-4ef0-991f-a8f671cdde52",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 1049,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "ac64ec32-ac17-4005-a006-91404f7d065e",
      "user_call_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
      "user_sms_number_id": "167dcff5-2f8b-4e6e-b35c-a8118a33563d",
      "user_device_id": "af4107c5-3055-4c21-adda-2e3d5968dcf5",
      "enabled_contact_types": [
        "email"
      ],
      "notification_type": "quiet",
      "created_at": "2026-01-28T14:52:31.580-08:00",
      "updated_at": "2026-01-28T14:52:31.580-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