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

# Update agent

> Update complete configuration and behavioral parameters of an existing Voice AI agent

Perform a full update on an existing Voice AI agent. This overwrites previous voice settings, prompts, and capability integrations with the provided configuration.

***

### Authentication

This endpoint requires Bearer token authentication.

```http theme={null}
Authorization: Bearer <token>
```

***

### Input parameters

<ParamField path="agent_id" type="string" required>
  Unique identifier of the agent to update. Example: `agent_12345` or UUID `e4b2d184-7cf1-4560-a292-6284649bcf2e`.
</ParamField>

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer <token>`.
</ParamField>

<ParamField body="name" type="string">
  Updated display name of the agent.
</ParamField>

<ParamField body="timezone" type="string">
  Operational timezone.
</ParamField>

<ParamField body="is_active" type="string">
  Operational status flag (`active`, `inactive`).
</ParamField>

<ParamField body="agent_config" type="object">
  Updated configuration payload containing prompts, voice models, and capabilities.
</ParamField>

***

### Response Fields

<ResponseField name="id" type="string">
  Agent identifier.
</ResponseField>

<ResponseField name="name" type="string">
  Updated agent name.
</ResponseField>

<ResponseField name="is_active" type="string">
  Updated active status.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 timestamp reflecting the update.
</ResponseField>

***

<RequestExample>
  ```python Python theme={null}
  import requests

  url = "https://api.sayvy.ai/api/v1/agents/agent_12345"

  headers = {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
  }

  payload = {
      "name": "Senior Support Specialist",
      "is_active": "active",
      "agent_config": {
          "welcome_message": "Hello! Welcome back to Sayvy AI. How can I help?",
          "language": "en-US",
          "llm_model": "gpt-4o"
      }
  }

  response = requests.put(url, json=payload, headers=headers)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.sayvy.ai/api/v1/agents/agent_12345", {
    method: "PUT",
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      name: "Senior Support Specialist",
      is_active: "active",
      agent_config: {
        welcome_message: "Hello! Welcome back to Sayvy AI. How can I help?",
        language: "en-US",
        llm_model: "gpt-4o"
      }
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```java Java theme={null}
  HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://api.sayvy.ai/api/v1/agents/agent_12345"))
      .header("Authorization", "Bearer <token>")
      .header("Content-Type", "application/json")
      .PUT(HttpRequest.BodyPublishers.ofString("""
          {
            "name": "Senior Support Specialist",
            "is_active": "active"
          }
          """))
      .build();

  HttpResponse<String> response =
      HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
  System.out.println(response.body());
  ```

  ```bash cURL theme={null}
  curl -X PUT "https://api.sayvy.ai/api/v1/agents/agent_12345" \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Senior Support Specialist",
      "is_active": "active"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "agent_12345",
    "name": "Senior Support Specialist",
    "organization_id": "93f35dc2-5d46-4e58-a9ee-038c35d9bcf1",
    "timezone": "America/New_York",
    "agent_type": "prompt",
    "is_active": "active",
    "created_at": "2024-05-20T10:15:30Z",
    "updated_at": "2026-09-03T14:30:00Z"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "error": 404,
    "message": "Agent not found"
  }
  ```
</ResponseExample>

***

<div
  style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "rgba(255, 255, 255, 0.03)",
border: "1px solid rgba(255, 255, 255, 0.08)",
borderRadius: "16px",
padding: "10px 18px",
marginTop: "40px",
gap: "16px",
flexWrap: "wrap"
}}
>
  <a
    href="/api-reference/agents/list-agents"
    style={{
display: "inline-flex",
alignItems: "center",
gap: "6px",
color: "#94A3B8",
textDecoration: "none",
fontSize: "14px",
fontWeight: "500",
padding: "4px 8px"
}}
  >
    <span style={{ fontSize: "16px" }}>‹</span> Previous
  </a>

  <div
    style={{
display: "flex",
alignItems: "center",
gap: "16px",
backgroundColor: "rgba(255, 255, 255, 0.04)",
border: "1px solid rgba(255, 255, 255, 0.06)",
borderRadius: "12px",
padding: "8px 16px",
marginLeft: "auto"
}}
  >
    <div style={{ textAlign: "right" }}>
      <div style={{ fontSize: "13px", fontWeight: "700", color: "#F8FAFC" }}>Delete agent</div>

      <div style={{ fontSize: "11px", color: "#94A3B8", maxWidth: "260px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
        Permanently remove an existing Voice AI agent
      </div>
    </div>

    <div style={{ width: "1px", height: "24px", backgroundColor: "rgba(255, 255, 255, 0.1)" }} />

    <a
      href="/api-reference/agents/delete-agent"
      style={{
  display: "inline-flex",
  alignItems: "center",
  gap: "6px",
  color: "#94A3B8",
  textDecoration: "none",
  fontSize: "14px",
  fontWeight: "500"
}}
    >
      Next <span style={{ fontSize: "16px" }}>›</span>
    </a>
  </div>
</div>
