---
title: "Creates a new task dependency."
method: POST
path: "/taskdependencies"
tags: ["taskDependencies"]
---

# Creates a new task dependency.

`POST /taskdependencies`

<Check title="Required Permissions" icon="key">To create a task dependency, the user needs to be the assignee of both tasks or have `ProjectPlanning`
            permissions in general or in the project the tasks are related to.</Check>

## Headers

- `Authorization` string, required

## Request body

- TaskDependencyForm — Describes the dependency between two tasks. One Task is the predecessor and one task is the successor.
  - `predecessorId` string, uuid — The Id of the predecessor. A task can have multiple predecessors through multiple dependency relationships.
  - `successorId` string, uuid — The Id of the successor. A task can have multiple successors through multiple dependency relationships.

## Response `200`

OK

- TaskDependency — Describes the dependency between two tasks. One Task is the predecessor and one task is the successor.
  - `predecessorId` string, uuid — The Id of the predecessor. A task can have multiple predecessors through multiple dependency relationships.
  - `successorId` string, uuid — The Id of the successor. A task can have multiple successors through multiple dependency relationships.
  - `id` string, uuid — The id of the task dependency.
  - `createdOn` string, date-time — The date this task dependency was created.
  - `createdBy` string, uuid — The id of the user who created this task dependency.
  - `updatedOn` string, date-time — The date this task dependenc was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this task dependency.

## Other responses

- `400` — Bad Request
- `404` — Not Found

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
