Skip to main content

Validates archive features

POST 

<your-unleash-url>/api/admin/projects/:projectId/archive/validate

This endpoint return info about the archive features impact.

Request

Path Parameters

    projectId stringrequired

Bodyrequired

batchFeaturesSchema
    features string[]required

    List of feature flag names

    Example: ["my-feature-4","my-feature-5","my-feature-6"]

Responses

validateArchiveFeaturesSchema
Schema
    parentsWithChildFeatures string[]required

    List of parent features that would orphan child features that are not part of the archive operation

    Example: ["my-feature-4","my-feature-5","my-feature-6"]
    hasDeletedDependencies booleanrequired

    Whether any dependencies will be deleted as part of archive

    Example: true

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/projects/:projectId/archive/validate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"features": [
"my-feature-4",
"my-feature-5",
"my-feature-6"
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "features": [
    "my-feature-4",
    "my-feature-5",
    "my-feature-6"
  ]
}
ResponseClear

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