Skip to main content

Export a final node

POST 

/api/v1/playbook-cases/:case_id/nodes/:node/exports

Renders one revision of a final node as files, one export per transformation: each transformation's tool is called with the case's case_id and subject, the node_id, the revision and that revision's output, and must answer a file (execute.response_mode: base64) of its format's content type. The file is kept in the project's files under /.system/playbooks/. An export never feeds a node.

Without revision the node's current output is exported, which needs the node done (409 PLAYBOOK_NODE_NOT_EXPORTABLE); a revision names an earlier output or confirmation of the node. Each tool runs as the author of the case's playbook version, whose permission to call it is checked here (403 PLAYBOOK_EXECUTOR_FORBIDDEN). A paused case is 409 PLAYBOOK_CASE_PAUSED, and a case in a paused project 409 PROJECT_PAUSED.

Without wait every export answers running and settles in the background; with wait: true it answers once each has its file or its error.

Request​

Responses​

One export per transformation, running or settled