Workflows

Create an immutable Workflow version using the immediately preceding matching test receipt and unchanged draft

Changed on

Appends 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.

post/v1/workflows/{configObjectId}/versions

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

configObjectId, string required

Request body

object required
name, string required
description, string
code, string required
exampleInput, unknown
inputSchema, unknown
outputSchema, unknown
requiredCapabilities, object[] required
receiptId, string required

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.

object required
pluginId, string required
configObjectId, string required
title, string required
description, string nullable required
canRun, boolean required
canManage, boolean required
currentVersion, object required
versions, object[] required
latestSnapshot, object nullable required
latestSuccessfulSnapshot, object nullable required
freshness, union required

Changes

    • breaking

      the response property currentVersion/code became nullable for the status

    • breaking

      the response property currentVersion/graph/anyOf[subschema #1]/edges/items/label became nullable for the status

    • breaking

      the response property currentVersion/graph/anyOf[subschema #1]/nodes/items/oneOf[subschema #2]/assignsTo became nullable for the status

    40 more changes in this revision