PUT
/
v1
/
notification_rules
/
{id}
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": "2c01dd70-3cad-4081-a1d1-99786ce6ceca",
    "type": "user_notification_rules",
    "attributes": {
      "user_id": 490,
      "delay": 2,
      "position": 1,
      "user_email_address_id": "5927e671-adf9-4fd9-8fb5-f293354b9578",
      "user_call_number_id": "93bf0d69-4da9-4f9f-8fa5-73a2e70bfb16",
      "user_sms_number_id": null,
      "user_device_id": "c8725b9c-c295-4105-b192-a4bee7aa3f06",
      "enabled_contact_types": [
        "device"
      ],
      "created_at": "2025-06-21T12:03:50.706-07:00",
      "updated_at": "2025-06-21T12:03:51.881-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.