Skip to main content

Mark features as stale / not stale

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

Authorization

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

This endpoint marks the provided list of features as either stale or not stale depending on the request body you send. Any provided features that don't exist are ignored.

Request

Path Parameters

  • projectId string required

Body

required

batchStaleSchema

  • features string[] required

    A list of features to mark as (not) stale

  • stale boolean required

    Whether the list of features should be marked as stale or not stale. If true, the features will be marked as stale. If false, the features will be marked as not stale.

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-1",
"my-feature-2",
"my-feature-3"
],
"stale": true
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/stale' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"features": [
"my-feature-1",
"my-feature-2",
"my-feature-3"
],
"stale": true
}'