---
title: "Add a feature dependency."
method: POST
path: "/api/admin/projects/{projectId}/features/{child}/dependencies"
tags: ["Dependencies"]
---

# Add a feature dependency.

`POST /api/admin/projects/{projectId}/features/{child}/dependencies`

Add a dependency to a parent feature. Each environment will resolve corresponding dependency independently.

## Path parameters

- `projectId` string, required
- `child` string, required

## Request body

- CreateDependentFeatureSchema — Feature dependency on a parent feature in write model
  - `feature` string, required — The name of the feature we depend on.
  - `enabled` boolean — Whether the parent feature should be enabled. When `false` variants are ignored. `true` by default.
  - `variants` string[] — The list of variants the parent feature should resolve to. Leave empty when you only want to check the `enabled` status.

## Response `200`

This response has no body.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- `404` — The requested resource was not found.

---

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