Create an immutable Workflow version using the immediately preceding matching test receipt and unchanged draft
Changed onAppends a new immutable version to the Workflow and updates its name and description. receiptId must reference a successful draft test by the caller that is less than 15 minutes old, has not already produced a version, and whose code, exampleInput, inputSchema, outputSchema, name, description, and requiredCapabilities all match this body byte-for-byte (400 workflow_matching_test_receipt_required). Every capability the test actually called must be listed in requiredCapabilities and still be available to the caller (400 workflow_capability_unavailable). Requires manager access to the Workflow.
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
Request body
Copy receiptId from the immediately preceding successful draft test. Submit the exact same name, description, code, exampleInput, inputSchema, outputSchema, and requiredCapabilities used by that test.
Response
Workflow version created.
Changes
- breaking
the response property
currentVersion/codebecame nullable for the status - breaking
the response property
currentVersion/graph/anyOf[subschema #1]/edges/items/labelbecame nullable for the status - breaking
the response property
currentVersion/graph/anyOf[subschema #1]/nodes/items/oneOf[subschema #2]/assignsTobecame nullable for the status
40 more changes in this revision
- breaking