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": "cd8256a8-3ed6-4d65-9d19-8697b4f0b05f",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 557,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "7df5cfc9-3727-4160-8650-4414e23574bc",
      "user_call_number_id": "d974dd4e-12f9-46fb-ae79-a2e8554099f6",
      "user_sms_number_id": null,
      "user_device_id": "a1b7dae8-5d84-4884-b730-702bc892b1e1",
      "enabled_contact_types": [
        "device"
      ],
      "created_at": "2025-11-06T13:30:47.764-08:00",
      "updated_at": "2025-11-06T13:30:49.088-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