Skip to main content

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.

Request

Path Parameters

    projectId stringrequired
    child stringrequired

Body

required

createDependentFeatureSchema

    feature stringrequired

    The name of the feature we depend on.

    Example: parent_feature
    enabled boolean

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

    Example: false
    variants string[]

    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.

Loading...