domains

Update Document Content

Save edited document text - the Documents editor's write path (TOS-2415).

See services/document_content.py for the full fan-out (history, persist, re-vectorize, Mind refresh).

Personal docs: only the owner may edit. Shared docs: edit/admin rung. Only document_kind='text' documents whose original (if any) is itself text are editable; binary-derived documents 409.

put/api/folders/documents/{document_id}/content

Request

  • Base URL: https://app.thinqos.com (the document declares no server; this is the origin it was published from)
  • URL: https://app.thinqos.com/api/folders/documents/{document_id}/content
  • Auth: none declared

Path parameters

document_idstring uuid required

Headers

x-impersonate-identity-idstring nullable

Request body

contentstring required
expected_content_hashstring nullable

Response

Successful Response

idstring uuid required
source_idstring required
titlestring
statusstring required
chunk_countinteger required
indexed_atstring date-time nullable required
error_messagestring nullable required
scopestring required
library_idstring uuid nullable
tagsstring[]
created_atstring date-time nullable required
modified_atstring date-time nullable
size_bytesinteger nullable
has_originalboolean
document_kindstring
slugstring nullable
original_content_typestring nullable
original_filenamestring nullable
title_sourcestring nullable
has_fitboolean
deleted_atstring date-time nullable
publishedboolean
sync_excludedboolean
mind_mode'immediate' | 'first_save' | 'never'
mind_refresh_status'current' | 'queued' | 'failed'
full_textstring nullable required
content_hashstring nullable
draft_contentstring nullable
draft_saved_atstring date-time nullable
draft_based_on_hashstring nullable
imprints_refreshedinteger
mind_refresh_failedboolean
version_numberinteger

Changes

No recorded changes to this operation across all 4 revisions of this API.