Skip to main content
PUT
/
v1
/
notification_rules
/
{id}
Update an user notification rule
curl --request PUT \
  --url https://api.rootly.com/v1/notification_rules/{id} \
  --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": "9b858ddc-52a2-4049-98d0-b5583d50b0f4",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 559,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "2893c38c-1c73-45d4-b2df-90b06ff2dddd",
      "user_call_number_id": "0308debc-d221-4615-9b9f-a805b2779fb3",
      "user_sms_number_id": null,
      "user_device_id": "873e59e4-b585-4b6f-8ea2-a025e20a1ff2",
      "enabled_contact_types": [
        "device"
      ],
      "created_at": "2025-11-26T20:58:11.571-08:00",
      "updated_at": "2025-11-26T20:58:12.415-08:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json
data
object
required

Response

user_notification_rule updated

data
object
required