---
title: "Update notification rule"
method: PUT
path: "/rts/notifications/rules/{rule_id}/"
tags: ["rts_notification_rules"]
---

# Update notification rule

`PUT /rts/notifications/rules/{rule_id}/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/rts/notifications/rules/{rule_id}/`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://my.angelcam.com/oauth/authorize/`, token URL `https://my.angelcam.com/oauth/token/`
    - Password, token URL `https://api.angelcam.com/oauth/token/`
    - Scopes: `notifications_rules_manage`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/rts/notifications/rules/:rule_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update notification rule

## Path parameters

- `rule_id` integer, required

## Request body

- NotificationRuleChangeObject
  - `notification_method` integer, required: notification method ID
  - `message_type` 'my_incident' | 'shared_incident' | 'arming' | 'trigger_action' | 'open_incident_verification' | 'verify_incident' | 'close_incident' | 'arrow_status_online' | 'arrow_status_offline' | 'camera_status_online' | 'camera_status_offline', required: message type to send notification for
  - `allowed_cameras` integer[]
  - `allowed_arrow_clients` string[]

## Response `200`

OK

- NotificationRuleObject
  - `id` integer, required: notification rule ID
  - `notification_method` integer, required: notification method ID
  - `message_type` 'my_incident' | 'shared_incident' | 'arming' | 'trigger_action' | 'open_incident_verification' | 'verify_incident' | 'close_incident' | 'arrow_status_online' | 'arrow_status_offline' | 'camera_status_online' | 'camera_status_offline', required: message type to send notification for
  - `allowed_cameras` integer[]
  - `allowed_arrow_clients` string[]

## Other responses

- `400`: Query params are invalid.
- `401`: Missing or invalid authorization.
- `403`: Missing permission.
- `404`: The specified resource was not found

---

[API](https://skmtc.dev/angelcam/apis/angelcam-api.md) - [All operations](https://skmtc.dev/angelcam/apis/angelcam-api/llms.txt) - [OpenAPI document](https://skmtc.dev/angelcam/apis/angelcam-api/revisions/dd1cdc3f2c23?raw)
