Mutations
updateTask
Updates an existing task.
Template for Mutation:
mutation UpdateTask($hubId: ID!, $input: UpdateTaskInput!) {
updateTask(hubId: $hubId, input: $input) {
task {
id
}
}
}
Arguments
| hubId* ID non-null | The CommonWorkspace hub ID (a.k.a. ACE scope URN) of the hub that contains the task. |
| input* UpdateTaskInput non-null | Input object containing the task ID and the fields to update. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| UpdateTaskPayload | Return payload for the updateTask mutation. |
Examples
Example 1
Updates a task. Every field other than taskId is optional — omitted fields are left unchanged. progress is a percentage between 0 and 100.
Query:
mutation UpdateTask($hubId: ID!, $input: UpdateTaskInput!) {
updateTask(hubId: $hubId, input: $input) {
task {
id
name
description
taskStatusId
priorityCode
priorityLabel
dueDate
progress
createdOn
lastModifiedOn
}
}
}
Show More
Query Variables:
{
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
"input": {
"taskId": "NgwRgSdC1VjONh8Ts9eoRK_aga",
"name": "Review bracket tolerances (rev B)",
"progress": 50
}
}
Show More
Response:
{
"data": {
"updateTask": {
"task": {
"id": "NgwRgSdC1VjONh8Ts9eoRK_aga",
"name": "Review bracket tolerances (rev B)",
"description": "Confirm the stack-up against the revised drawing before release.",
"taskStatusId": "EwgH0qjTZmhD3JEW0iU4VK_aga:BACKLOG",
"priorityCode": "15_MEDIUM",
"priorityLabel": "Medium",
"dueDate": null,
"progress": 50,
"createdOn": "2026-11-30T22:33:14.370Z",
"lastModifiedOn": "2026-11-30T22:33:18.747Z"
}
}
}
}
Show More