Skip to main content
Memory Stores

Update a memory store

Update a memory store's name, description, or metadata.

POST /api/v1/cloud/memory_stores/{memory_store_id} Updates a memory store. All fields are optional; omitted fields are preserved.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>
Content-TypeYesapplication/json

Path parameters

ParameterTypeRequiredDescription
memory_store_idstringYesMemory Store ID with the memstore_ prefix

Request body

FieldTypeRequiredDescription
namestringNoNew name, 1–255 characters, no control characters
descriptionstringNoNew description, up to 1024 characters. Pass empty string to clear
metadataobjectNoMetadata patch. Set a key to a string to upsert, or to null to delete. Omit to preserve

Example request

curl -X POST "https://api.qoder.com.cn/api/v1/cloud/memory_stores/memstore_019e5cdb9c3f71c3b6505eba937a40b4" \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "project-alpha-memory-v2",
    "metadata": {"team": null, "env": "production"}
  }'

Response

Returns the updated Memory Store object.

Error codes

HTTPtypeTrigger
400invalid_request_errorInvalid name, description, or metadata
401authentication_errorMissing or invalid authentication token
404not_found_errorNo Memory Store exists with the specified ID
For the complete error envelope, see Errors.