1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/websitev2/docs/api/admin/feature-toggles-archive-api.md

45 lines
1.1 KiB
Markdown
Raw Normal View History

2021-05-18 13:22:28 +02:00
---
id: features-archive
title: /api/admin/archive
---
2021-07-29 15:04:00 +02:00
> 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](/user_guide/api-token) and add an Authorization header using the token.
2021-05-18 13:22:28 +02:00
### Fetch archived toggles {#fetch-archived-toggles}
2021-05-18 13:22:28 +02:00
`GET http://unleash.host.com/api/admin/archive/features`
Used to fetch list of archived feature toggles
**Example response:**
```json
{
"version": 1,
"features": [
{
"name": "Feature.A",
"description": "lorem ipsum",
"type": "release",
"stale": false,
"variants": [],
"tags": [],
"strategy": "default",
"parameters": {}
}
]
}
```
### Revive feature toggle {#revive-feature-toggle}
2021-05-18 13:22:28 +02:00
2021-08-26 14:40:39 +02:00
`POST http://unleash.host.com/api/admin/archive/revive/:featureName`
2021-05-18 13:22:28 +02:00
2021-08-26 14:40:39 +02:00
Response: **200 OK** - When feature toggle was successfully revived.
2021-05-18 13:22:28 +02:00
2021-08-26 14:40:39 +02:00
### Delete an archivied feature toggle
`POST http://unleash.host.com/api/admin/archive/revive/:featureName`
2021-05-18 13:22:28 +02:00
2021-08-26 14:40:39 +02:00
Will fully remove the feature toggle and associated configuration. Impossible to restore after this action.