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": "b3407c13-36ed-49ba-98b2-e311fa28b936",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 493,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "c4c02443-aa99-439f-8a2a-a8b9901f568d",
      "user_call_number_id": "13e5dd59-0f9e-424d-a922-2e7c1c0343f8",
      "user_sms_number_id": null,
      "user_device_id": "18c6b4d7-b96d-4869-b140-19926eca2bf3",
      "enabled_contact_types": [
        "device"
      ],
      "created_at": "2025-08-15T07:16:45.434-07:00",
      "updated_at": "2025-08-15T07:16:46.311-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.