Export an artifact to a collection as a document
POSThttps://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
- 200
- 400
- 401
- 403
- 500
The document created from the artifact
No artifact id in the body or the query string, or the artifact is an interface
The API key or session is missing, expired, or malformed.
No write access to the collection, or an interface in a collection the user cannot open
Unexpected server error.