Team documents

Overwrite a Team document body

Replaces the entire markdown body of one Team document; title and folder are preserved. An empty body is refused with 400 unless the request also sends confirmEmpty: true. The edit is attributed to the token's creator in version history and the audit feed. Returns the document without its body.

put/api/team/v1/documents/{id}/body

Request

  • Base URL: https://mdflow.cz
  • URL: https://mdflow.cz/api/team/v1/documents/{id}/body
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Document UUID.

Request body

bodystring required

Replacement markdown body. UTF-8 encoded content must not exceed 512000 bytes.

confirmEmptyboolean

Must be true when body is an empty string. An empty body is otherwise refused with 400.

Response

Updated Team document (without body).

idstring uuid required
workspace_idstring uuid required

The Team workspace this document belongs to. Never changes.

folder_idstring uuid nullable required

Containing folder, or null for a document at the workspace root.

titlestring required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.