import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const addonPackageEntitlement = await client.v1.addons.entitlements.delete('id', {
addonId: 'addonId',
});
console.log(addonPackageEntitlement.data);{
"data": {
"id": "<string>",
"description": "<string>",
"isGranted": true,
"isCustom": true,
"order": 123,
"behavior": "Increment",
"hiddenFromWidgets": [
"PAYWALL"
],
"displayNameOverride": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "FEATURE",
"usageLimit": 123,
"hasUnlimitedUsage": true,
"hasSoftLimit": true,
"resetPeriod": "YEAR",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
},
"enumValues": [
"<string>"
]
}
}Deletes an entitlement from a draft addon.
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
const addonPackageEntitlement = await client.v1.addons.entitlements.delete('id', {
addonId: 'addonId',
});
console.log(addonPackageEntitlement.data);{
"data": {
"id": "<string>",
"description": "<string>",
"isGranted": true,
"isCustom": true,
"order": 123,
"behavior": "Increment",
"hiddenFromWidgets": [
"PAYWALL"
],
"displayNameOverride": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "FEATURE",
"usageLimit": 123,
"hasUnlimitedUsage": true,
"hasSoftLimit": true,
"resetPeriod": "YEAR",
"resetPeriodConfiguration": {
"accordingTo": "SubscriptionStart"
},
"enumValues": [
"<string>"
]
}
}Server API Key
The addon ID
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$The feature ID or custom currency ID of the entitlement
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$The deleted addon entitlement object.
Response object
Feature entitlement response
Show child attributes