Updates the name, description, and metadata of a memory store.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /memory_stores/{memory_store_id}
Path parameters
memory_store_id string (必选)
Memory store ID
Request bodynamestring (可选)New name, 1-255 charactersdescription string (可选)New purpose descriptionmetadata object (可选)New custom key-value pairs for business metadata | Request example |
Response fieldsidstringtype stringname stringdescription stringmetadata objectarchived_at string | nullcreated_at stringupdated_at string | Response example |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | invalid_request_error | Invalid parameters, path, limit, or pagination cursor |
| 401 | InvalidApiKey | API key missing, invalid, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |
| 404 | not_found_error | Resource does not exist or does not belong to the current workspace |
| 409 | memory_path_conflict_error etc. | Path conflict, conditional update conflict, or writing to an archived store |