latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

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}

Path parameters

keystring required

Request body

valuestring nullable
{"stackTrail":"components:schemas:MemoryUpdateRequest:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","nullable":true}
user_idstring nullable
team_idstring nullable

Response

Successful Response

memory_idstring required
keystring required
valuestring required
{"stackTrail":"components:schemas:LiteLLM_MemoryRow:properties:metadata:anyOf","oasType":"schema","type":"unknown","title":"Metadata","nullable":true}
user_idstring nullable
team_idstring nullable
created_atstring date-time nullable
created_bystring nullable
updated_atstring date-time nullable
updated_bystring nullable