Create a workflow source file in the project source or a preview branch when a new multi-step process must be runnable or schedulable; returns the workflow source document. Requires project.runs.write.
Arguments
projectReferenceString!requiredinputCreateWorkflowInput!requiredinput.idString!requiredBecomes the file name and the workflow id; the workflow name is derived from it.
input.descriptionStringinput.versionStringinput.schedulableBooleanWhether a schedule can start the workflow; default true.
input.sourceTargetKindWriteTargetKindThe source to write; default project. One of
project,preview_branch.input.targetBranchIdIDRequired with the kind preview_branch.
Responses
mutation CreateWorkflow($projectReference: String!, $input: CreateWorkflowInput!) { createWorkflow(projectReference: $projectReference, input: $input) { id name description target sourcePath source version schedulable editMode sourceOnlyReasons }}{ "data": { "createWorkflow": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "source": "string", "version": "string", "schedulable": false, "editMode": "structured", "sourceOnlyReasons": [ "string" ] } }}The WorkflowSource! in data.createWorkflow.