---
title: "Attach Label To Task"
method: PUT
path: "/label/{id}/task"
tags: ["Labels"]
---

# Attach Label To Task

`PUT /label/{id}/task`

Attach an existing label to a task

## Path parameters

- `id` string, required

## Request body

- object
  - `taskId` string, required

## Response `200`

Label attached to task successfully

- object
  - `id` string, required
  - `name` string, required
  - `color` string, required
  - `createdAt` string, date-time, required
  - `taskId` string, nullable, required
  - `workspaceId` string, nullable, required

## Changes

- **2026-07-11** `32cece1ebe43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/label/:id/task/put.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/32cece1ebe43/schema)
