POST
/
v1
/
users
/
{user_id}
/
notification_rules
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": "5de92ff1-c20f-4f94-8476-064b096efaf2",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 477,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "97e97a65-f83a-432a-8e36-f414f8ec8602",
      "user_call_number_id": "b61adf52-8318-4a0e-a23d-076f525be35e",
      "user_sms_number_id": "b61adf52-8318-4a0e-a23d-076f525be35e",
      "user_device_id": "cc7ccc27-273f-49ba-b5e2-9caf7c47a75d",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-05-08T00:25:51.502-07:00",
      "updated_at": "2025-05-08T00:25:51.502-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

Response

201
application/vnd.api+json
user_notification_rule created

The response is of type object.