# ee.data.updateTask

<br />

Update one or more tasks' properties. For now, only the following properties may be updated: State (to CANCELLED)

<br />

Returns an array of updated tasks, or null if a callback is specified.

| Usage | Returns |
|---|---|
| `ee.data.updateTask(taskId, action, *callback*)` | List\[TaskStatus\] |

| Argument | Type | Details |
|---|---|---|
| `taskId` | List\[String\]\|String | Submitted ID of the task or an array of multiple task IDs. May also contain operation names. |
| `action` | TaskUpdateActions | Action performed on tasks. |
| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |