---
search:
  tags:
    - projects
    - POST
seo:
  description: >-
    Connects a component item (epic, feature,… Reference for the POST
    /projects/{projectId}/items/{itemId}/tasks/connect endpoint in the Leadtime
    Public API API.
sidebar:
  badge: POST
  label: Connect component item to task
title: Connect component item to task
type: openapi-operation
---
Connects a component item (epic, feature, or task) to an existing task in the task management system. If the item already has a task connection, it will be disconnected first before establishing the new connection. Component tags are automatically merged into the task's tags. To disconnect an item from a task without connecting to a new one, pass null or omit the taskId in the request body.

<Operation source="api-reference" id="projectcomponentscontroller-connectitemtotask" />
