Update the agent memory
Replace the notes, turn them on or off, or both. The last save wins.
PATCH /v1/tenants/{tenant}/memory
curl -X PATCH "https://api.shako.dev/v1/tenants/acme/memory" \
-H "Authorization: Bearer $SHAKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Always answer in bullet points.","enabled":true}'200 (excerpt)
{
"enabled": true,
"text": "Always answer in bullet points.",
"tokens": 8,
"updated": 1793491200
}Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.
Path parameters
tenantstringrequired- The tenant's name, from GET /v1/tenants.
Request body
textstringdefault: no change- The notes, at most 2000 tokens.
enabledbooleandefault: no change- true: Shako adds the notes to each LLM request from the VMs of the tenant.
Response
200 with the agent memory object.
The errors. All the endpoints of Agent memory.