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
- 201
- 400
- 401
- 403
- 404
- 409
One export per transformation, running or settled
Bad request — a node the version does not declare or that has no transformations, a transformation it does not declare, or a revision that is no output of the node
Unauthorized
Forbidden, or the author may not call a transformation's tool
Case not found
The node has no current output, the case is paused, or the version has no author to run as