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": "6af4b4dd-a108-49cb-974a-89fc31cd3113",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 492,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "d86798a2-6d4b-4e61-abc4-501683156ef3",
      "user_call_number_id": "cab17c91-251d-4d68-9701-1ea5137fe65c",
      "user_sms_number_id": "cab17c91-251d-4d68-9701-1ea5137fe65c",
      "user_device_id": "a29bd5f1-e380-44a0-9a4a-445ac8adfe3f",
      "enabled_contact_types": [
        "email"
      ],
      "created_at": "2025-07-09T00:19:24.778-07:00",
      "updated_at": "2025-07-09T00:19:24.778-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.