Doc body

Replace the doc body

Send either content (ProseMirror JSON) or markdown (string). When both are present, content wins. Markdown gets converted server-side via remark + remark-gfm + Dock's rich format set (mermaid, math, callouts, cross-refs, embeds).

put/api/workspaces/{slug}/doc

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required

Request body

contentunknown
markdownstring

Response

Replaced.

contentunknown
markdownstring

CommonMark + GFM. Returned when ?format=markdown (or Accept: text/markdown with no ?format).

textstring

Plain text, formatting marks stripped. Returned when ?format=text (or Accept: text/plain with no ?format).

updatedAtstring date-time required
updatedBystring required

Changes

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