# Add a task dependency

> Makes the task depend on depends_on_task_id, a task in the same project: the path's task is blocked until that one closes, in any terminal state.

Makes the task depend on `depends_on_task_id`, a task in the same project: the path's task is blocked until that one closes, in any terminal state. The pair is the dependency's identity: adding it again answers `200` with the existing one. An edge that would close a cycle is refused.

  Request

<ParamsDetails
  {...require("./add-task-dependency.ParamsDetails.json")}
>

<RequestSchema
  {...require("./add-task-dependency.RequestSchema.json")}
>

<StatusCodes
  {...require("./add-task-dependency.StatusCodes.json")}
>
