---
title: "Update Customer Agent"
description: "How to call Update Customer Agent (PATCH /api/customer-agents/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/update_customer_agent_beta"
revision: "2026-07-15.pre"
latestUrl: "https://developers.klaviyo.com/en/reference/update_customer_agent_beta"
operationId: "update_customer_agent_beta"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/customer-agents/{id}"
authentication: "privateKey"
scopes: ["agents:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/update_customer_agent_beta.json"
jsonApi: {"fields":{"customer-agent":["communication_styles","escalation_rules","id","name","tone_of_voice","tone_of_voice.custom_instruction","tone_of_voice.preset"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/customer-agent-beta/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/list_agent_knowledge_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_knowledge_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_agent_knowledge_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_agent_knowledge_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_agent_knowledge_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_agent_knowledge_file_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/list_customer_agent_conversations_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/retrieve_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_customer_agent_conversation_context_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_customer_agents_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_customer_agent_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_customer_agent_response_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_secrets_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_skills_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_skill_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_agent_skill_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_agent_skill_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_agent_skill_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/query_customer_agent_skill_values_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_tools_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/query_customer_agent_tool_values_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/query_customer_agent_values_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_message_ids_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_messages_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_conversation_context_ids_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_agent_conversation_contexts_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_tool_ids_for_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_tools_for_agent_secret_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_skill_ids_for_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_skills_for_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_secret_ids_for_agent_tool_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_secrets_for_agent_tool_beta.md"]
---

# Update Customer Agent

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/update_customer_agent_beta

```http
PATCH https://a.klaviyo.com/api/customer-agents/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-07-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Patches the Customer Agent resource for the calling company.

The request body ``data.id`` must match the path parameter. Supports ``name``, ``tone_of_voice``, ``escalation_rules``, and ``communication_styles``. For tone, provide ``tone_of_voice.preset`` from the supported enum, or ``preset: "custom"`` together with ``custom_instruction``. For ``escalation_rules`` and ``communication_styles``, the supplied array replaces the existing list; omit the field to leave the existing list unchanged. Takes effect on the next turn.

- Revision header: `revision: 2026-07-15.pre` (required)
- Scopes: `agents:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/update_customer_agent_beta.json)

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/customer-agents/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "customer-agent",
    "id": "string",
    "attributes": {}
  }
}'
```

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[customer-agent]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `communication_styles`, `escalation_rules`, `id`, `name`, `tone_of_voice`, `tone_of_voice.custom_instruction`, `tone_of_voice.preset`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent`
  - `id` (string, required): Customer Agent resource id. Must match the `id` path parameter.
  - `attributes` (object, required)
    - `name` (string, nullable): The name of the AI agent.
    - `tone_of_voice` (object, nullable): Patchable tone-of-voice settings for the Customer Agent resource.
      - `preset` (string, nullable): Built-in tone preset. Allowed values: `neutral`, `professional`, `friendly`, `playful`, `custom`
      - `custom_instruction` (string, nullable): Free-text instruction the agent uses for tone when `preset` is `custom`. Ignored otherwise.
    - `escalation_rules` (object[], nullable): Natural-language triggers that, when matched, cause the agent to escalate to a human. When provided, the supplied array replaces the existing list; omit to leave the existing list unchanged.
      - `title` (string, required): Short, human-readable label for the escalation rule.
      - `description` (string, required): Natural-language description of when this rule fires.
      - `status` (string, required): Whether this guidance item is active. Allowed values: `enabled`, `disabled`
    - `communication_styles` (object[], nullable): Global communication styles the agent applies on every turn. When provided, the supplied array replaces the existing list; omit to leave the existing list unchanged.
      - `title` (string, required): Short, human-readable label for the communication style.
      - `description` (string, required): Natural-language communication style the agent must follow on every turn.
      - `status` (string, required): Whether this guidance item is active. Allowed values: `enabled`, `disabled`

### Example request body

```json
{
  "data": {
    "type": "customer-agent",
    "id": "string",
    "attributes": {}
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `customer-agent`
  - `id` (string, required): Customer Agent resource id. This is the account's ID. Example: `AbC123`
  - `attributes` (object, required)
    - `name` (string, nullable): The name of the AI agent.
    - `tone_of_voice` (object, required): Tone-of-voice settings for the Customer Agent resource.
      - `preset` (string, required): Built-in tone preset. Allowed values: `neutral`, `professional`, `friendly`, `playful`, `custom`
      - `custom_instruction` (string, nullable): Free-text instruction the agent uses for tone when `preset` is `custom`. Ignored otherwise.
    - `escalation_rules` (object[], required): Natural-language triggers that, when matched, cause the agent to escalate to a human. Each rule is individually enabled or disabled.
      - `title` (string, required): Short, human-readable label for the escalation rule.
      - `description` (string, required): Natural-language description of when this rule fires.
      - `status` (string, required): Whether this guidance item is active. Allowed values: `enabled`, `disabled`
    - `communication_styles` (object[], required): Global communication styles the agent applies on every turn, such as opening conventions, formatting preferences, and word choices to avoid. Each style is individually enabled or disabled.
      - `title` (string, required): Short, human-readable label for the communication style.
      - `description` (string, required): Natural-language communication style the agent must follow on every turn.
      - `status` (string, required): Whether this guidance item is active. Allowed values: `enabled`, `disabled`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "customer-agent",
    "id": "AbC123",
    "attributes": {
      "name": "string",
      "tone_of_voice": {
        "preset": "neutral",
        "custom_instruction": "string"
      },
      "escalation_rules": [
        {
          "title": "string",
          "description": "string",
          "status": "enabled"
        }
      ],
      "communication_styles": [
        {
          "title": "string",
          "description": "string",
          "status": "enabled"
        }
      ]
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
