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"
}
}Archives a feature, preventing it from being used in new entitlements.
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"
}
}