Skip to main content

Get archived features in project

GET 

<your-unleash-url>/api/admin/archive/features/:projectId

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Retrieves a list of archived features that belong to the provided project.

Request

Path Parameters

    projectId stringrequired

Responses

archivedFeaturesSchema

Schema
    versionintegerrequired

    The version of the feature's schema

    features object[]required

    A list of features

  • Array [
  • namestringrequired

    Unique feature name

    Example: disable-comments
    typestring

    Type of the flag e.g. experiment, kill-switch, release, operational, permission

    Example: kill-switch
    descriptionstringnullable

    Detailed description of the feature

    Example: Controls disabling of the comments section in case of an incident
    projectstringrequired

    Name of the project the feature belongs to

    Example: dx-squad
    staleboolean

    true if the feature is stale based on the age and feature type, otherwise false.

    Example: false
    impressionDataboolean

    true if the impression data collection is enabled for the feature, otherwise false.

    Example: false
    createdAtdate-time

    The date the feature was created

    Example: 2023-01-28T15:21:39.975Z
    archivedAtdate-time

    The date the feature was archived

    Example: 2023-01-29T15:21:39.975Z
    lastSeenAtdate-timenullabledeprecated

    The date when metrics where last collected for the feature. This field was deprecated in v5, use the one in featureEnvironmentSchema

    Example: 2023-01-28T16:21:39.975Z
    environments object[]deprecated

    The list of environments where the feature can be used

  • Array [
  • namestring

    The name of the environment

    Example: my-dev-env
    lastSeenAtdate-timenullable

    The date when metrics where last collected for the feature environment

    Example: 2023-01-28T16:21:39.975Z
    enabledboolean

    true if the feature is enabled for the environment, otherwise false.

    Example: true
  • ]
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/archive/features/:projectId' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
ResponseClear

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