---
title: "Create Task Relation"
method: POST
path: "/task-relation"
tags: ["Task Relations"]
---

# Create Task Relation

`POST /task-relation`

Create a relation between two tasks

## Request body

- object
  - `sourceTaskId` string, required
  - `targetTaskId` string, required
  - `relationType` 'subtask' | 'blocks' | 'related', required

## Response `200`

Task relation created successfully

- object
  - `id` string, required
  - `sourceTaskId` string, required
  - `targetTaskId` string, required
  - `relationType` string, required
  - `createdAt` string, date-time, required

---

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