Write a memory

PUT /api/v1/code/memory-stores/{storeId}/memories on the Caveman Cloud control plane. Requires the code:write scope. Not exposed to autonomous agents: Team memory stores are created and curated through the Agents API by a person or a service account's key. An agent in a session reads and writes only the stores its session attached, through its runtime and as attached, never through a control-plane connection.

put/code/memory-stores/{storeId}/memories

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/memory-stores/{storeId}/memories
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: code:write
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

pathstring required
contentstring required
if_sha256string

A lowercase hex sha256, or "".

Response

The memory, without content

pathstring required
sha256string required
size_bytesinteger required
contentstring

The memory's text; on a single read or include_content=true.

updated_by_user_idstring uuid
updated_by_service_account_idstring uuid
updated_by_workspace_idstring uuid
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.