Supersede an out-of-date memory
POST/api/v1/memory/supersede
In the SDKs: update
Replaces old content with new; the old memory stops answering. Speaker tags follow.
Authentication
Every call carries your API key in an X-API-Key header. Keys are created in the console.
X-WOS-ModeloptionalPicks the memory model that answers. Omit it and the account default is used.
Idempotency-KeyoptionalMakes a retry safe: the same key returns the first result instead of writing twice.
Request body
JSON, required. Out-of-range values are refused with a 400 rather than quietly clamped.
user_idstring requiredThe store to operate on. Stores are explicit: create one first or use the built-in "default".
old_memory_idstring requirednew_contentstring required
Returns
The 200 body. Fields nested one level are shown as parent.child.
old_memory_idstringnew_memory_idstringstatusstring
Example
curl -X POST https://api.wontopos.com/api/v1/memory/supersede \
-H "X-API-Key: $WOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Status codes
| Status | Meaning |
|---|---|
| 200 | Success. |
| 400 | Invalid or missing old_memory_id. |
| 401 | Missing or invalid API key. |
| 404 | Store (user_id) does not exist. Create it first: POST /api/v1/memory/collection. |
| 429 | Rate limited (per-account, per-tier RPM). Retry after the indicated delay. |
Rate limits per tier and the full status list are in Errors & limits.
In the SDKs
The Python, TypeScript, and Rust SDKs wrap this endpoint so you do not build the request by
hand — pip install wontopos, npm i wontopos, or cargo add wontopos, then the method list is on the SDK reference. A coding agent can take the whole API in one file
at llms.txt, or over MCP with npx -y wontopos-mcp.