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": "2027-01-19T15:47:43.247Z",
"updatedAt": "2026-03-02T10:19:46.052Z"
}
}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": "2027-01-19T15:47:43.247Z",
"updatedAt": "2026-03-02T10:19:46.052Z"
}
}