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

# Enable or Disable Memory

> Enable or disable memory for a pathway or persona version.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Body Parameters

Provide **either** pathway **or** persona identifiers (not both).

**pathway\_id** `string`

Pathway ID. Use with `version_number` and `memory_enabled`.

**version\_number** `number`

Pathway version number. Required when `pathway_id` is provided.

**persona\_id** `string`

Persona ID. Use with `version_id` and `memory_enabled`.

**version\_id** `string`

Persona version ID (UUID). Required when `persona_id` is provided.

**memory\_enabled** `boolean` *required*

Set to `true` to enable memory, `false` to disable.

### Response

**data** `object`

Success response data.

**data.message** `string`

Success message.

**errors** `null`

Error array (null on success).

```json Response (pathway) theme={null}
{
  "data": {
    "message": "Memory enabled successfully for pathway."
  },
  "errors": null
}
```

```json Response (persona) theme={null}
{
  "data": {
    "message": "Memory enabled successfully for persona."
  },
  "errors": null
}
```

```json Missing or invalid body theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "INVALID_REQUEST",
      "message": "memory_enabled (boolean) is required."
    }
  ]
}
```

```json Neither or both pathway/persona theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "INVALID_REQUEST",
      "message": "Exactly one of pathway_id or persona_id is required."
    }
  ]
}
```

```json Not found / Forbidden theme={null}
{
  "data": null,
  "errors": [
    {
      "error": "NOT_FOUND",
      "message": "Pathway not found."
    }
  ]
}
```

### Behavior

When memory is **enabled**, the system automatically refreshes entity schemas in the background — no additional action required. From that point on, memory is populated automatically on every call or SMS conversation that runs through the pathway or persona version.

When memory is **disabled**, no new memory is written. Existing memory data is preserved.

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


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