updateWorkflow

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!required

  • workflowIdString!required

  • inputUpdateWorkflowInput!required

  • input.descriptionString

    Omit it to keep the description; null clears it.

  • input.versionString

    Omit it to keep the version; null clears it.

  • input.schedulableBoolean

    Omit it to keep the value.

  • input.sourceTargetKindWriteTargetKind

    The source to write; default project. One of project, preview_branch.

  • input.targetBranchIdID

    Required 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.