---
title: "Updates the order of a task within its list."
method: POST
path: "/tasks/{taskId}/updateorder"
tags: ["tasks"]
---

# Updates the order of a task within its list.

`POST /tasks/{taskId}/updateorder`

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Path parameters

- `taskId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- UpdateOrderForm
  - `order` number, double, nullable — The order of the list.

## Response `200`

OK

- ReorderingResult[]
  - `id` string, uuid, required — The id of the list to move the task to or to change the order for.
  - `order` number, double, nullable — The order of the task in the list. If null, the task is moved to the end of the list.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
