---
title: "Link tasks to control"
method: POST
path: "/v1/controls/{id}/tasks/link"
tags: ["Controls"]
---

# Link tasks to control

`POST /v1/controls/{id}/tasks/link`

Link compliance tasks to a control so implementation work, evidence collection, and review status stay connected.

## Path parameters

- `id` string, required

## Query parameters

- `frameworkInstanceId` string, required

## Request body

- LinkTasksDto
  - `taskIds` string[], required — Task IDs to link to the control

## Response `201`

## Changes

- **2026-05-13** `21e04ca7fc10` — 1 breaking
  - added the new required `query` request parameter `frameworkInstanceId`
- **2026-04-17** `6871e9212739` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/controls/:id/tasks/link/post.md)

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
