---
title: "Update Agent Rule"
method: PUT
path: "/v1/smb/customer-facing-agents/{agent_id}/rules/{rule_id}"
tags: ["smb", "SMB"]
---

# Update Agent Rule

`PUT /v1/smb/customer-facing-agents/{agent_id}/rules/{rule_id}`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/smb/customer-facing-agents/{agent_id}/rules/{rule_id}`
- Auth: none declared

Replace an existing rule on the named receptionist. Send every field: an omitted `priority` resets to `strict`.

## Path parameters

- `agent_id` string, required
- `rule_id` string, required

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
- `xi-workspace-id` string, nullable: The customer workspace a reseller's API key acts on.

## Request body

- BodySmbUpdateAgentRule
  - `request` SMBUpdateAgentRuleRequest, required: Request model for updating an existing agent rule.
    - `title` string, required
    - `description` string, required
    - `priority` 'strict' | 'suggestion'

## Response `200`

Successful Response

- AgentRule: A single behavioral rule for the agent.
  - `title` string, required
  - `description` string, required
  - `priority` 'strict' | 'suggestion'
  - `id` string
  - `created_at_unix` integer: Unix timestamp (seconds since epoch)

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `b77988199a2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/smb/customer-facing-agents/:agent_id/rules/:rule_id/put.md)

---

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