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": "cb05624e-9071-4d95-99cc-8083cf30f682",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 1149,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "368d8a8e-facc-4b2b-84cd-0f98836fd32e",
      "user_call_number_id": "914cb2f4-c69f-4532-bd3a-52c7ba81a6d1",
      "user_sms_number_id": "914cb2f4-c69f-4532-bd3a-52c7ba81a6d1",
      "user_device_id": "7c524e45-9e62-42f3-bcaf-019ed274dad7",
      "enabled_contact_types": [
        "email"
      ],
      "notification_type": "quiet",
      "created_at": "2026-02-13T18:10:42.395-08:00",
      "updated_at": "2026-02-13T18:10:42.395-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