/api/v2/pages/{id}/replace_body_with_markdown

PATCH
Docs • Pages

Replace a page body with markdown

Description

Replace a page's entire body with the supplied markdown. The markdown is converted to the page's rich-text representation and applied through the docs-realtime collaboration service so concurrent editors see the change immediately.

The request body is a plain JSON object {"markdown": "…"}, not a JSON:API document; an empty markdown returns 422.

Loading parameters…
Loading request bodies…
Loading responses…