---
title: "Changes the lists of tasks."
method: POST
path: "/tasks/changelists"
tags: ["tasks"]
---

# Changes the lists of tasks.

`POST /tasks/changelists`

Adds tasks to lists, removes them and reorders tasks within lists.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Headers

- `Authorization` string, required

## Request body

- ChangeTaskListsForm[]
  - `taskId` string, uuid, required — The id of the task to change.
  - `taskLists` TaskListToTaskForm[], required — The lists the task should be moved to.
    - `id` string, uuid, required — The id of the task list.
    - `order` number, double, nullable — The order of the task in the list. If null, the task is moved to the end of the list.
    - `isPrimary` boolean, nullable — Whether the TaskList should be the primary list for the task. If not specified for any list of the task, the first list by order will be the primary list.

## Response `200`

OK

- ChangeTaskListsForm[]
  - `taskId` string, uuid, required — The id of the task to change.
  - `taskLists` TaskListToTaskForm[], required — The lists the task should be moved to.
    - `id` string, uuid, required — The id of the task list.
    - `order` number, double, nullable — The order of the task in the list. If null, the task is moved to the end of the list.
    - `isPrimary` boolean, nullable — Whether the TaskList should be the primary list for the task. If not specified for any list of the task, the first list by order will be the primary list.

## Other responses

- `400` — Bad Request

---

[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)
