workflow-editor

Create Draft

Create a new workflow draft.

post/v3/workflow-editor/drafts

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

mentium-workspace-idstring nullable

Request body

namestring

Draft name

yaml_contentstring nullable

Initial YAML content. If not provided, uses empty template.

workflow_idstring nullable

Existing workflow ID if editing a published workflow.

Response

Successful Response

idstring required
workspace_idstring required
namestring nullable
yaml_contentstring required
workflow_parent_idstring nullable
draft_idstring nullable

ID of the child draft linked to this workflow, if one exists. Only populated for non-draft (deployed / inactive) workflows.

created_atstring required
updated_atstring required
can_undoboolean

Whether undo is available

is_activeboolean

Whether the workflow is deployed and active

is_draftboolean

Whether this is a draft

deployed_versioninteger

Number of times this workflow has been deployed

Changes

No recorded changes to this operation across all 2 revisions of this API.