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": "cf527cc4-5bec-4e26-9d99-2382d33fd58e",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 509,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "4ab60005-f335-4b64-89ad-69df15c11d0e",
      "user_call_number_id": "59998f82-456b-4f82-a82f-80ea1fffaa66",
      "user_sms_number_id": null,
      "user_device_id": "4cc154e1-b709-4f38-b3f0-78b68c6bb33e",
      "enabled_contact_types": [
        "device"
      ],
      "created_at": "2025-09-04T12:43:47.931-07:00",
      "updated_at": "2025-09-04T12:43:48.853-07: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

Response

200
application/vnd.api+json

user_notification_rule updated

The response is of type object.