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": "f8df66d6-44ff-4547-8b5c-5b7b87ed0bc5",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 1149,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "aaf027ed-b6cb-4c4c-b822-e8ee8cef9cc5",
      "user_call_number_id": "d6835229-6a74-4115-9361-9a50eb9804f6",
      "user_sms_number_id": "d6835229-6a74-4115-9361-9a50eb9804f6",
      "user_device_id": "e4473e9a-4303-4dec-8507-6cdfe97ba482",
      "enabled_contact_types": [
        "email"
      ],
      "notification_type": "quiet",
      "created_at": "2026-02-15T21:16:04.223-08:00",
      "updated_at": "2026-02-15T21:16:04.223-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