fleet-memory/hindsight-docs/docs/developer/api
Nicolò Boschi 1b4ad7f435
feat: change tags for a document (#517)
* feat: add update document tags endpoint with observation invalidation

Adds PATCH /v1/default/banks/{bank_id}/documents/{document_id} to change
tags on a document without re-processing content.

- Updates tags on the document and all associated memory units atomically
- Invalidates observations derived from the document's memory units
- Resets consolidated_at on the document's own units for re-consolidation
- Also resets consolidated_at on co-source memories from other documents
  that shared those observations (matching delete_document behavior)
- Triggers async consolidation when observations are invalidated
- 9 new tests covering all invalidation scenarios

UI: adds inline tag editor to the document detail panel in the control plane
Docs: new "Update Document Tags" section in documents.mdx with Python/JS examples

* refactor: simplify UpdateDocumentTagsResponse to {success: true}

* refactor: make PATCH /documents generic update_document endpoint

Renames update_document_tags → update_document (engine + HTTP + clients + UI).
Currently only tags are supported; the structure is open for future fields.
Tags are the only field with side effects (observation invalidation + re-consolidation).
2026-03-07 09:00:13 +01:00
..
documents.mdx feat: change tags for a document (#517) 2026-03-07 09:00:13 +01:00
main-methods.mdx chore: internal renames (#204) 2026-01-27 09:53:28 +01:00
memory-banks.mdx feat: add source facts token limits to consolidation and recall (#509) 2026-03-06 13:01:33 +01:00
mental-models.mdx feat: mental model history tracking and UI diff view (#516) 2026-03-06 17:50:48 +01:00
operations.md chore: internal renames (#204) 2026-01-27 09:53:28 +01:00
quickstart.mdx doc: mental models (#199) 2026-01-26 14:27:08 +01:00
recall.mdx feat: filter graph memories with tags (#431) 2026-02-25 10:31:40 +01:00
reflect.mdx doc: improve api explanation (#415) 2026-02-20 17:02:01 +01:00
retain.mdx feat: support timestamp="unset" to retain content without a date (#465) 2026-03-02 12:03:23 +01:00
webhooks.mdx feat: webhook system with retain.completed event, UI, and docs (#487) 2026-03-04 14:17:01 +01:00