Skip to main content

Validates archive features

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

Authorization

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

This endpoint return info about the archive features impact.

Request

Path Parameters

  • projectId string required

Body

required

batchFeaturesSchema

  • features string[] required

    List of feature flag names

Responses

validateArchiveFeaturesSchema

Schema
  • parentsWithChildFeatures string[] required

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

  • hasDeletedDependencies boolean required

    Whether any dependencies will be deleted as part of archive

Authorization

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

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
projectId — path required
Body required
{
"features": [
"my-feature-4",
"my-feature-5",
"my-feature-6"
]
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/archive/validate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"features": [
"my-feature-4",
"my-feature-5",
"my-feature-6"
]
}'