Skip to main content

Mark features as stale / not stale

POST 

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

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 stringrequired

Bodyrequired

batchStaleSchema

    featuresstring[]required

    A list of features to mark as (not) stale

    Example: ["my-feature-1","my-feature-2","my-feature-3"]
    stalebooleanrequired

    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.

    Example: true

Responses

This response has no body.

Authorization: Authorization

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

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