---
title: "Assigns a list of users to task templates."
method: POST
path: "/taskbundles/{taskBundleId}/tasktemplates/{taskTemplateId}/setassignees"
tags: ["taskTemplates"]
---

# Assigns a list of users to task templates.

`POST /taskbundles/{taskBundleId}/tasktemplates/{taskTemplateId}/setassignees`

Users that are not passed and are already assigned will be removed.
            Removes existing task template assignments and adds the new assignment.

<Check title="Required Permissions" icon="key">The user must be an admin or have `task-manage-config:write` permissions.</Check>

## Path parameters

- `taskTemplateId` string, uuid, required
- `taskBundleId` string, required

## Headers

- `Authorization` string, required

## Request body

- string[]

## Response `204`

No Content

- object

## Other responses

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