Change the description, version or schedulable flag of a structured workflow, where an omitted field keeps its value; returns the updated workflow source document. Requires project.runs.write.
Arguments
projectReferenceString!requiredworkflowIdString!requiredinputUpdateWorkflowInput!requiredinput.descriptionStringOmit it to keep the description; null clears it.
input.versionStringOmit it to keep the version; null clears it.
input.schedulableBooleanOmit it to keep the value.
input.sourceTargetKindWriteTargetKindThe source to write; default project. One of
project,preview_branch.input.targetBranchIdIDRequired with the kind preview_branch.
Responses
mutation UpdateWorkflow($projectReference: String!, $workflowId: String!, $input: UpdateWorkflowInput!) { updateWorkflow(projectReference: $projectReference, workflowId: $workflowId, input: $input) { id name description target sourcePath source version schedulable editMode sourceOnlyReasons }}{ "data": { "updateWorkflow": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "source": "string", "version": "string", "schedulable": false, "editMode": "structured", "sourceOnlyReasons": [ "string" ] } }}The WorkflowSource! in data.updateWorkflow.