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": "42698cfe-86bf-4039-9ba5-9a86003a0159",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 1149,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "6fcfbe2e-03f8-45e2-ad62-d4863b4349fc",
      "user_call_number_id": "926222af-2258-4f04-af6a-8b6bdc57c93d",
      "user_sms_number_id": "926222af-2258-4f04-af6a-8b6bdc57c93d",
      "user_device_id": "3b179d27-c78c-49a0-9beb-564211a44a9d",
      "enabled_contact_types": [
        "email"
      ],
      "notification_type": "quiet",
      "created_at": "2026-02-18T19:01:05.337-08:00",
      "updated_at": "2026-02-18T19:01:05.337-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