Skip to main content
POST
Upload workflow bundle

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Body

application/json
workflow_ref_name
string
required
script
string
required

Workflow Python source. Or multipart script_file / workflow_file / file.

workflow_name
string

Display name. Defaults from workflow_ref_name when omitted.

description
string
timeout_seconds
integer
execution_mode
enum<string>
Available options:
sync,
async,
stream
application_id
integer
application_name
string

Bind to application by name; creates if missing.

allow_inproc_nesting
boolean
inproc_nested_refs
string[]
publish_version
boolean

Publish an immutable workflow version after upload.

version_notes
string

Notes for the published version.

version_bump
enum<string>

Semver bump when publishing. Defaults to minor.

Available options:
major,
minor,
patch
accessories
object[]

Inline accessories as base64 objects (multipart accessory_ also supported).

Response

200 - application/json

Upload workflow bundle.

data
any