updateTask

Change the name, description or schedulable flag of a structured task, where an omitted description or flag keeps its value; returns the updated task source document. Requires project.runs.write.

Arguments

  • projectReferenceString!required

  • taskIdString!required

  • inputUpdateTaskInput!required

  • input.nameString!required

  • input.descriptionString

    Omit it to keep the description; 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 UpdateTask($projectReference: String!, $taskId: String!, $input: UpdateTaskInput!) {  updateTask(projectReference: $projectReference, taskId: $taskId, input: $input) {    id    name    description    target    sourcePath    source    schedulable    editMode    sourceOnlyReasons  }}
{  "data": {    "updateTask": {      "id": "string",      "name": "string",      "description": "string",      "target": "string",      "sourcePath": "string",      "source": "string",      "schedulable": false,      "editMode": "structured",      "sourceOnlyReasons": [        "string"      ]    }  }}

The TaskSource! in data.updateTask.