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!requiredtaskIdString!requiredinputUpdateTaskInput!requiredinput.nameString!requiredinput.descriptionStringOmit it to keep the description; 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 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.