Skip to main content
POST
Save a successful Code Mode run as a Workflow inside an OpenWork Connect Plugin

Authorizations

Authorization
string
header
required

Session token passed as Authorization: Bearer <session-token> for user-authenticated Den routes.

Body

application/json
name
string
required
Required string length: 1 - 255
pluginId
string

Existing OpenWork Connect Plugin that will contain and share this Workflow. Omit to use the member's private My Workflows Plugin.

Required string length: 1 - 160
description
string
Maximum string length: 4000
code
string

Exact tested source. Required without receiptId; if both are supplied it must byte-match the retained source.

Required string length: 1 - 200000
receiptId
string

Successful authoring receipt from this caller within 15 minutes. Encrypted source retention is shared across replicas when Redis is configured, otherwise process-local. If unavailable, retest or omit receiptId and supply the exact source.

Required string length: 1 - 160
currentInput
any

Must match the tested input when receiptId is supplied. Forbidden for live authoring receipts.

inputSchema
any
outputSchema
any

Optional JSON Schema for the value returned by this Workflow.

Response

Workflow saved.

pluginId
string
required
configObjectId
string
required
configObjectVersionId
string
required
graph
object
required
mermaid
string
required