Skip to main content
POST
/
api
/
v1
/
features
/
{id}
/
archive
JavaScript
import Stigg from '@stigg/typescript';

const client = new Stigg({
  apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});

const feature = await client.v1.features.archiveFeature('x');

console.log(feature.data);
{
  "data": {
    "id": "feature-api-calls",
    "displayName": "API Calls",
    "description": "Number of API calls allowed per month",
    "featureType": "NUMBER",
    "meterType": "INCREMENTAL",
    "featureUnits": "call",
    "featureUnitsPlural": "calls",
    "featureStatus": "SUSPENDED",
    "unitTransformation": null,
    "enumConfiguration": null,
    "metadata": {},
    "createdAt": "2025-09-06T03:54:02.352Z",
    "updatedAt": "2026-10-13T22:59:44.907Z"
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Response

The archived feature object.

Response object

data
Feature · object
required

Feature configuration object