kb_documents_update
Save a new revision of an existing document. Omit title/body_md/project_slug/group_slugs to preserve existing values. Pass expected_revision_id for optimistic-concurrency protection; omit for last-write-wins. Returns no_changes=true (and inserts no revision) when the save would change nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | New title; preserves existing if absent | |
| body_md | No | New markdown body; preserves existing if absent | |
| document_id | Yes | Document id (required) | |
| group_slugs | No | Replace group set; [] to clear all groups | |
| tenant_slug | No | Tenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants. | |
| include_body | No | Include the full document body_md (default false; you already hold the body you sent - the returned current_revision_id confirms the save). | |
| project_slug | No | Move to project; null to remove from project | |
| document_date | No | ISO 8601 date (YYYY-MM-DD) representing the date the document content is from. Omit to preserve the existing value; pass null explicitly to clear a previously-set date. | |
| expected_revision_id | No | Optimistic-concurrency precondition |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | ||
| no_changes | Yes |