1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00
unleash.unleash/website/docs/reference/api/legacy/unleash/admin/archive.md
2024-05-24 15:07:01 +03:00

1.1 KiB

title
/api/admin/archive

In order to access the admin API endpoints you need to identify yourself. Unless you're using the none authentication method, you'll need to create an ADMIN token and add an Authorization header using the token.

Fetch archived flags

GET http://unleash.host.com/api/admin/archive/features

Used to fetch list of archived feature flags

Example response:

{
  "version": 1,
  "features": [
    {
      "name": "Feature.A",
      "description": "lorem ipsum",
      "type": "release",
      "stale": false,
      "variants": [],
      "tags": [],
      "strategy": "default",
      "parameters": {}
    }
  ]
}

Revive feature flag

POST http://unleash.host.com/api/admin/archive/revive/:featureName

Response: 200 OK - When feature flag was successfully revived.

Delete an archived feature flag

DELETE http://unleash.host.com/api/admin/archive/:featureName

Will fully remove the feature flag and associated configuration. Impossible to restore after this action.