> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update agent

> Partially edit an agent's configuration.

Partially update an agent's configuration.

## Overview

| | |
| - | - |
| Method | `PATCH` |
| Path | `/api/v2/agents/{agentId}` |
| Permission | `agents:write` |
| Returns | `item` with its new version |

## Path parameter

**agentId** `string` *required*

UUID of the agent to update.

## Request body

**expected\_updated\_at** `string` *required*

Copied exactly from the latest detail response. Ensures optimistic concurrency.

**name** `string`

Agent name.

**description** `string`

Nullable. Can be cleared with `null`.

**status** `string`

Agent status.

**channel\_scope** `array`

Channel scope array.

**style\_tags** `array`

Style tags array.

**tags** `array`

Tags array.

## Editable fields

> [accordion] Basic
>
> * `name`
> * `description`
> * `status`
> * `channel_scope`
> * `style_tags`
> * `tags`

> [accordion] Sender and company
>
> * `sender_name`
> * `sender_title`
> * `sender_company_name`
> * `sender_company_website`
> * `sender_company_summary`
> * `sender_bio`
> * `sender_linkedin_url`
> * `sender_avatar_url`
> * `source_company_url`

> [accordion] Content
>
> * `goal_type`
> * `icebreaker_goal_prompt`
> * `autoreply_goal_prompt`
> * `icebreaker_system_prompt`
> * `autoreply_system_prompt`
> * `icebreaker_reference_template`
> * `autoreply_reference_template`
> * `reference_template_strict`
> * `icebreaker_content_mode`
> * `icebreaker_content`
> * `extra_context`

> [accordion] Timing
>
> * `send_language`
> * `timezone`
> * `work_time_preset`
> * `send_time_start`
> * `send_time_end`
>
> Times use `HH:mm`. The timezone must be valid.

> [accordion] Channels
>
> * `linkedin_enabled`
> * `whatsapp_enabled`
> * `email_enabled`
> * `linkedin_auto_engagement`
> * `autoreply_block_prior_platform_conversation`
> * `interval_secs` and `daily_limit` for `linkedin`, `whatsapp`, and `email`

### Setting objects

> [accordion] Knowledge settings
>
> `knowledge_settings` accepts `kb_ids` for owned or public knowledge bases.

> [accordion] Autoreply stop settings
>
> `autoreply_stop_settings` accepts information-collection settings, `terminalRules`, and `maxAutoReplyTurns`.

> [accordion] Autoreply first reply settings
>
> `autoreply_first_reply_settings` accepts `fixed_welcome_enabled` and `fixed_welcome_message`.

These objects merge their public subfields while preserving private settings. Arrays are replaced.

## Request example

```bash cURL theme={null}
curl -X PATCH "https://revor.ai/api/v2/agents/{agentId}" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Content-Type: application/json" \
  -d '{
    "expected_updated_at": "2026-11-13T04:44:50.096+00:00",
    "name": "Sales assistant",
    "description": null
  }'
```

## Response

```json 200 theme={null}
{
  "ok": true,
  "request_id": "req_xxx",
  "item": {
    "id": "agent-uuid",
    "name": "Sales assistant",
    "updated_at": "2026-11-13T04:44:50.096+00:00"
  }
}
```

### Behavior

* Stale versions return `409`; read and reconcile changes before retrying.
* Omitted fields remain unchanged.
* Nullable text can be cleared with `null`.
* Arrays can be cleared with `[]`.
* Unknown fields, incorrect types, and empty patches are rejected.
* Successful writes return `item` with its new version.

> [!NOTE]
>
> Writes use the `outreach_write` rate-limit bucket.
> Existing V1/V2, required-field, and limit normalization rules apply. Mode/version conversion is unsupported. The independent `icebreaker_ai_content` and `icebreaker_fixed_template` drafts are editable.

> [!WARNING]
>
> Attachment uploads, advanced model settings, and whole `channel_settings` objects are outside this public contract. Internal metadata, scraping snapshots, and credentials are excluded from public output.

## Errors

| HTTP | Code | Meaning |
| - | - | - |
| `400` | `agent_input_invalid` | Request does not match the contract |
| `400` | `agent_configuration_invalid` | Violates business validation rules |
| `403` | `permission_denied` | Missing required permission |
| `404` | `agent_not_found` | Agent does not exist, was deleted, or belongs to another user |
| `409` | `agent_config_conflict` | Version expired or concurrent modification |
| `409` | `agent_knowledge_base_not_found` | Linked knowledge base is unavailable |
| `500` | `agent_operation_failed` | Operation failed. Read current state before retrying |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.