cURL
curl --request POST \ --url https://sontairo.com/api/chat/memory \ --header 'Content-Type: application/json' \ --data ' { "workspaceId": "<string>", "key": "<string>", "value": "<string>", "projectId": "<string>", "category": "general" } '
{ "data": { "id": "<string>", "workspaceId": "<string>", "projectId": "<string>", "key": "<string>", "value": "<string>", "category": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Upsert a memory entry by key. If the key exists, the value is updated.
Unique key for the memory entry
1 - 255
Memory content
1
Category for organizing memory
Memory created or updated
Show child attributes