Team documents

Create a Team document

Creates a markdown document in a Team workspace where the token has write access. Pass folder_id to file it into a folder (the folder's workspace wins; a conflicting workspace_id is a 400), or workspace_id alone to create it at the workspace root. Duplicate sibling titles are automatically disambiguated. Answers 400 once the Team account reaches its 10,000-document cap.

post/api/team/v1/documents

Request

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

Request body

titlestring required
bodystring required

Markdown document body. UTF-8 encoded content must not exceed 512000 bytes.

folder_idstring uuid nullable

Folder to create the document in; its workspace is used. Omit or null for the workspace root.

workspace_idstring uuid

Team workspace for a root document. Required when folder_id is not set (MDflow never guesses a workspace); must match the folder's workspace when it is.

Response

Created 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.