Skip to main content

Add a feature dependency.

POST 

<your-unleash-url>/api/admin/projects/:projectId/features/:child/dependencies

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

Request

Path Parameters

    projectId stringrequired
    child stringrequired

Bodyrequired

createDependentFeatureSchema

    featurestringrequired

    The name of the feature we depend on.

    Example: parent_feature
    enabledboolean

    Whether the parent feature should be enabled. When false variants are ignored. true by default.

    Example: false
    variantsstring[]

    The list of variants the parent feature should resolve to. Leave empty when you only want to check the enabled status.

    Example: ["variantA","variantB"]

Responses

This response has no body.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
— pathrequired
Body required
{
  "feature": "parent_feature",
  "enabled": false,
  "variants": [
    "variantA",
    "variantB"
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!