> ## 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 Memory

> Update the name of an existing memory.

### Headers

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

### Path Parameters

<ParamField path="memory_id" type="string" required>
  The unique identifier of the memory to update.
</ParamField>

### Body Parameters

<ParamField body="name" type="string" required>
  The new name for the memory. Cannot be null or undefined.
</ParamField>

### Response

<ResponseField name="data" type="object">
  The updated memory object.
</ResponseField>

<ResponseField name="data.id" type="string">
  Unique identifier for the memory.
</ResponseField>

<ResponseField name="data.name" type="string">
  Updated name of the memory.
</ResponseField>

<ResponseField name="data.created_at" type="string">
  ISO timestamp when the memory was originally created.
</ResponseField>

<ResponseField name="data.user_id" type="string">
  Unique identifier for the organization that owns the memory.
</ResponseField>

<ResponseField name="data.memory_duration" type="number">
  Currently under development.
</ResponseField>

<ResponseField name="errors" type="null">
  Error array (null on success).
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": {
      "id": "12345678-1234-1234-1234-123456789012",
      "created_at": "2025-07-21T07:24:49.883Z",
      "user_id": "87654321-4321-4321-4321-210987654321",
      "name": "Test Memory",
      "memory_duration": null
    },
    "errors": null
  }
  ```

  ```json Missing or Invalid Data theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "INVALID_REQUEST",
        "message": "No update data provided."
      }
    ]
  }
  ```

  ```json Server Error theme={null}
  {
    "data": null,
    "errors": [
      {
        "error": "MEMORY_UPDATE_ERROR",
        "message": "Failed to update memory."
      }
    ]
  }
  ```
</ResponseExample>

***

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