---
title: "Update memory"
method: POST
path: "/memory/{memoryId}/update"
tags: ["Memory"]
---

# Update memory

`POST /memory/{memoryId}/update`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/memory/{memoryId}/update`
- Auth: HTTP bearer

## Path parameters

- `memoryId` string, required

## Request body

- object: Instance crud properties
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `contactId` string: The contact associated with the memory
  - `botId` string: The bot associated with the memory
  - `text` string: The text of the memory
  - `expiresAt` integer, nullable: Epoch-ms timestamp at which the memory is automatically deleted; null clears any expiry

## Response `200`

The memory was updated successfully

- object
  - `id` string, required: The ID of the updated memory

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
