---
title: "Update a notification rule"
method: PATCH
path: "/companies/{company}/agents/{agent}/notification-rules/{rule}"
tags: ["AI Agent"]
---

# Update a notification rule

`PATCH /companies/{company}/agents/{agent}/notification-rules/{rule}`

## Path parameters

- `company` integer, required
- `agent` integer, required
- `rule` integer, required

## Request body

- AgentNotificationRuleResource
  - `id` integer — One notification rule on an AI Agent (DEV-2656).
  - `name` string, nullable
  - `enabled` boolean
  - `frequency` 'every_call' | 'important_only' | 'daily_digest'
  - `importantCallTriggers` string[]
  - `importantCallDurationThresholdSecs` integer
  - `digestTime` string, nullable — Daily digest send time as HH:MM. Accepted as HH:MM or HH:MM:SS on write.
  - `emailEnabled` boolean
  - `recipients` string[]
  - `pushEnabled` boolean
  - `pushUserIds` integer[]
  - `createdAt` string, date-time, nullable
  - `updatedAt` string, date-time, nullable

## Response `200`

Rule updated

- AgentNotificationRuleResource
  - `id` integer — One notification rule on an AI Agent (DEV-2656).
  - `name` string, nullable
  - `enabled` boolean
  - `frequency` 'every_call' | 'important_only' | 'daily_digest'
  - `importantCallTriggers` string[]
  - `importantCallDurationThresholdSecs` integer
  - `digestTime` string, nullable — Daily digest send time as HH:MM. Accepted as HH:MM or HH:MM:SS on write.
  - `emailEnabled` boolean
  - `recipients` string[]
  - `pushEnabled` boolean
  - `pushUserIds` integer[]
  - `createdAt` string, date-time, nullable
  - `updatedAt` string, date-time, nullable

## Other responses

- `404` — Rule not found for this agent
- `422` — Validation error

---

[API](https://skmtc.dev/800/apis/public-api.md) · [All operations](https://skmtc.dev/800/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/800/public-api/revisions/b4b302ac9e83/schema)
