Skip to main content

Export an artifact to a collection as a document

POST 

https://platform.docana.com/api/v1/artifacts/export/

Exports the selected artifact version (version, latest when omitted) as HTML for standalone websites or PDF for Markdown documents and saves it as a separate snapshot document in the destination collection, which requires write permission. The document then goes through the regular ingestion pipeline. The artifact is named by the id body field; the id query parameter is the deprecated location and the body value wins when both are given. An interface is a live widget, not a document, so it cannot be exported (400). The 403 responses are plain-text bodies.

Request​

Responses​

The document created from the artifact