Get archived features in project
GET /api/admin/archive/features/:projectId
This endpoint has been deprecated and may be removed in future versions of the API.
Retrieves a list of archived features that belong to the provided project.
Request
Path Parameters
- projectId string required
- 200
- 401
- 403
archivedFeaturesSchema
- application/json
- Schema
- Example (from schema)
Schema
- version integer required
The version of the feature's schema
features object[]required
A list of features
Array [name string requiredUnique feature name
type stringType of the flag e.g. experiment, kill-switch, release, operational, permission
description string nullableDetailed description of the feature
project string requiredName of the project the feature belongs to
stale booleantrue
if the feature is stale based on the age and feature type, otherwisefalse
.impressionData booleantrue
if the impression data collection is enabled for the feature, otherwisefalse
.createdAt date-timeThe date the feature was created
archivedAt date-timeThe date the feature was archived
lastSeenAt date-time nullable deprecatedThe date when metrics where last collected for the feature. This field was deprecated in v5, use the one in featureEnvironmentSchema
environments object[]deprecated
The list of environments where the feature can be used
Array [name stringThe name of the environment
lastSeenAt date-time nullableThe date when metrics where last collected for the feature environment
enabled booleantrue
if the feature is enabled for the environment, otherwisefalse
.]]
{
"version": 0,
"features": [
{
"name": "disable-comments",
"type": "kill-switch",
"description": "Controls disabling of the comments section in case of an incident",
"project": "dx-squad",
"stale": false,
"impressionData": false,
"createdAt": "2023-01-28T15:21:39.975Z",
"archivedAt": "2023-01-29T15:21:39.975Z"
}
]
}
Authorization information is missing or invalid. Provide a valid API token as the authorization
header, e.g. authorization:*.*.my-admin-token
.
- application/json
- Schema
- Example (from schema)
Schema
- id string
The ID of the error instance
- name string
The name of the error kind
- message string
A description of what went wrong.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "AuthenticationRequired",
"message": "You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login."
}
The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- application/json
- Schema
- Example (from schema)
Schema
- id string
The ID of the error instance
- name string
The name of the error kind
- message string
A description of what went wrong.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NoAccessError",
"message": "You need the \"UPDATE_ADDON\" permission to perform this action in the \"development\" environment."
}