---
title: "Add Dependency"
method: POST
path: "/api/v1/tasks/{task_id}/dependencies/{dependency_id}"
tags: ["tasks"]
---

# Add Dependency

`POST /api/v1/tasks/{task_id}/dependencies/{dependency_id}`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/tasks/{task_id}/dependencies/{dependency_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Add a dependency to a task.

## Path parameters

- `task_id` integer, required
- `dependency_id` integer, required

## Response `200`

Successful Response

- MessageResponse: Simple message response for action endpoints.
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gnosari/apis/gnosari-api.md) · [All operations](https://skmtc.dev/gnosari/apis/gnosari-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gnosari/apis/gnosari-api/revisions/f299cf53ae5f?raw)
