---
title: "Assign users to a task"
method: POST
path: "/assignTask"
tags: ["Task"]
---

# Assign users to a task

`POST /assignTask`

## Request

- Base URL: `https://www.taskade.com/api/v2`
- URL: `https://www.taskade.com/api/v2/assignTask`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

Additive: handles already assigned are left as-is and nobody is unassigned. Every handle must belong to a project or workspace member.

## Request body

- object
  - `projectId` string, required: The project the task lives in
  - `taskId` string, required: The task ID (from `listTasks`)
  - `handles` string[], required: User handles to assign

## Response `200`

Default response

- object
  - `ok` true, required
  - `item` object, required
    - `id` string, required
    - `text` string
    - `completed` boolean

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v2.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v2/revisions/45f0e74ec083?raw)
