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 under the policy_ids of the case's playbook version: an export whose tool it may not call fails (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
- 413
- 429
- 500
- 502
- 4XX
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 version's policy_ids do not allow a transformation's tool
Case not found
The node has no current output, or the case is paused
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded
The deployment's admission service is asked about this write and did not answer — ADMISSION_UNAVAILABLE; the write did not happen
The deployment's admission service refused this write — answered under the service's own 4xx status, with its code (matching ^[A-Za-z_][A-Za-z0-9_]{0,63}$, not necessarily an ERROR_CODES key), message and meta; the write did not happen. A status this operation also declares on its own is documented there