Skip to main content

Archives a list of features

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

Authorization

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

This endpoint archives the specified features. Any features that are already archived or that don't exist are ignored. All existing features (whether already archived or not) that are provided must belong to the specified project.

Request

Path Parameters

  • projectId string required

Body

required

batchFeaturesSchema

  • features string[] required

    List of feature flag names

Responses

This response has no body.

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' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"features": [
"my-feature-4",
"my-feature-5",
"my-feature-6"
]
}'