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

# Update Agent

> Change an agent's display name.

### Overview

Changes an agent's display name. The agent's configuration lives in its versions, not on the agent record; to change behavior, save a new version with [Create Agent Version](/api-v2/post/agents-id-versions).

Requires an admin, owner, operator, or prompter role.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="agent_id" type="string" required>
  The agent's unique identifier.
</ParamField>

### Body Parameters

<ParamField body="name" type="string" required>
  New display name. Must be non-empty after trimming whitespace. Returns `400 INVALID_NAME` otherwise.
</ParamField>

### Response

<ResponseField name="data" type="object">
  The updated agent record. Environments are not included; use [Get Agent](/api-v2/get/agents-id) for those.

  <Expandable title="agent object">
    <ResponseField name="id" type="string">
      Unique identifier for the agent.
    </ResponseField>

    <ResponseField name="org_id" type="string">
      The organization that owns the agent.
    </ResponseField>

    <ResponseField name="name" type="string">
      The agent's new display name.
    </ResponseField>

    <ResponseField name="created_by" type="string | null">
      ID of the user who created the agent, or `null` when created with an org-level key.
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 timestamp of creation.
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      ISO 8601 timestamp of this update.
    </ResponseField>

    <ResponseField name="deleted_at" type="null">
      Always `null` on a live agent.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="errors" type="null | array">
  `null` on success, or a list of error objects if the request failed.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": {
      "id": "dbc52076-c8bd-4ec7-81a9-8999bc83d2b2",
      "org_id": "45794f66-94ca-44a2-9248-202c5ff22717",
      "name": "Front desk (after hours)",
      "created_by": "bd8ae00b-c51d-4364-b1b3-245ad579c44a",
      "created_at": "2026-09-10T22:59:51.569Z",
      "updated_at": "2026-09-10T22:59:52.275Z",
      "deleted_at": null
    },
    "errors": null
  }
  ```

  ```json Invalid Name theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "INVALID_NAME",
        "message": "name must be a non-empty string"
      }
    ]
  }
  ```

  ```json Not Found theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "NOT_FOUND",
        "message": "Agent not found"
      }
    ]
  }
  ```
</ResponseExample>

***

Docs for agents: [llms.txt](/llms.txt)
