PUT /api/memories/batch
Update up to 200 memories in a single call. Each item follows the same shape as PUT /api/memories/:id. Errors are reported per-row in failed[] — a single bad row doesn't abort the batch.
curl -X PUT https://www.mnueron.com/api/memories/batch \
-H "Authorization: Bearer $MNUERON_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"updates": [
{ "id": "01HQA…", "tags": ["verified"] },
{ "id": "01HQB…", "metadata": { "promoted": true } },
{ "id": "01HQC…", "content": "Updated phrasing", "tags": ["verified"] }
]
}'
Body
| Field | Type | Required | Notes |
|---|---|---|---|
updates | array | yes | Each item: { id, content?, tags?, namespace?, metadata? }. Max 200 |
Response
{
"updated": 2,
"failed": [
{ "id": "01HQC…", "error": "not found" }
],
"results": [
{ "id": "01HQA…", "content": "...", "tags": ["verified"], ... },
{ "id": "01HQB…", "content": "...", "metadata": { "promoted": true }, ... }
]
}
Rate limiting
The batch call charges one slot against the per-token 60/min cap regardless of how many rows it updates. Use this to bulk-tag thousands of memories without burning your write budget.
Webhooks
One memory.updated event fires per successfully updated row, after the connection is released.