Skip to main content

Set feature completed

POST <your-unleash-url>/api/admin/projects/:projectId/features/:featureName/lifecycle/complete

Authorization

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

This will set the feature as completed.

Request

Path Parameters

  • projectId string required
  • featureName string required

Body

required

featureLifecycleCompletedSchema

  • status string required

    Possible values: [kept, discarded]

    The status of the feature after it has been marked as completed

  • statusValue string

    The metadata value passed in together with status

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
featureName — path required
Body required
{
"status": "kept",
"statusValue": "variant1"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/projects/:projectId/features/:featureName/lifecycle/complete' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"status": "kept",
"statusValue": "variant1"
}'