workflow-editor

Create Draft From Deployed

Create a new draft by cloning a deployed workflow's YAML.

The draft is linked to the deployed workflow via workflow_parent_id. If a draft already exists for this parent, it is returned instead of creating a duplicate.

This is used when the user wants to edit an already-deployed workflow: the frontend calls this endpoint to get a draft, then opens the editor.

post/v3/workflow-editor/drafts/from-deployed

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

workflow_idstring required

ID of the deployed workflow to edit.

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.