---
title: "POST /workflowtasks/{taskId}/change-task-status"
method: POST
path: "/workflowtasks/{taskId}/change-task-status"
tags: ["WorkflowTasks"]
---

# POST /workflowtasks/{taskId}/change-task-status

`POST /workflowtasks/{taskId}/change-task-status`

Update the status of a workflow task request.

## Path parameters

- `taskId` string, uuid, required

## Query parameters

- `api-version` string, required

## Request body

- TaskUpdateCommand
  - `newStatus` 'NotStarted' | 'InProgress' | 'Completed' | 'Canceled', required — The new status will be used to update the task.
  - `comment` string — The comment when update a task.

## Response `200`

OK

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/purview-workflow.md) · [All operations](https://skmtc.net/azure/apis/purview-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/purview-workflow/versions/60435bfd503d/schema)
