Put Document
Replace the full document content for a thread.
The human editor uses this to make direct changes to the shared document. Replaces the entire content (not a patch) so the frontend sends the current full content on every save.
Args: payload: New content and optional title. user: Authenticated owner. thread_id: Target conversation. db: Database session.
Returns:
The updated DocumentSchema.
Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
1