memory management

Upsert Memory

Upsert a memory entry by key within the caller's scope.

If no row exists for (key, caller.user_id, caller.team_id), create one. If one exists, update the value/metadata fields that were provided.

put/v1/memory/{key}

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/v1/memory/{key}
  • Auth: API key in header x-litellm-api-key

Path parameters

keystring required

Request body

valuestring nullable
metadataunknown
user_idstring nullable
team_idstring nullable

Response

Successful Response

memory_idstring required
keystring required
valuestring required
metadataunknown
user_idstring nullable
team_idstring nullable
created_atstring date-time nullable
created_bystring nullable
updated_atstring date-time nullable
updated_bystring nullable

Changes

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