---
title: "PM · Deps · Add a BLOCKS, RELATES_TO, or DUPLICATES dependency between two tasks"
method: POST
path: "/api/v1/pm/tasks/{task_id}/add_dependency"
tags: ["dependencies"]
---

# PM · Deps · Add a BLOCKS, RELATES_TO, or DUPLICATES dependency between two tasks

`POST /api/v1/pm/tasks/{task_id}/add_dependency`

## Request

- Base URL: `https://api.simplified.com`
- URL: `https://api.simplified.com/api/v1/pm/tasks/{task_id}/add_dependency`
- Auth: API key in header `Authorization`

Create a dependency relationship between two tasks.
Required fields: `target_task_id` (UUID of the other task), `relation_type`
(must be UPPERCASE): `BLOCKS`, `RELATES_TO`, or `DUPLICATES`.
Use `getTaskDependencies` to read the current dependency graph before adding,
to avoid duplicates. Returns the created relationship object.

## Path parameters

- `task_id` string, required

## Headers

- `Organization` string
- `Space` string

## Request body

- AddDependencyRequest: Add a dependency to this task. `BLOCKS` is enforced with cycle detection; the inverse `BLOCKED_BY` is auto-created.
  - `target_task_id` string, uuid, required
  - `relation_type` 'BLOCKS' | 'RELATES_TO' | 'DUPLICATES'

## Response `201`

Relationship created.

- unknown

---

[API](https://skmtc.dev/simplified/apis/project-manager.md) - [All operations](https://skmtc.dev/simplified/apis/project-manager/llms.txt) - [OpenAPI document](https://skmtc.dev/simplified/apis/project-manager/revisions/9ef06e133a13?raw)
