PUT · Batch update memories

Update up to 200 memories in a single call. Per-row errors are reported.

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

FieldTypeRequiredNotes
updatesarrayyesEach 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.

Last updated 2026-05-24edit