Skip to main content
DELETE
/
api
/
v1
/
plans
/
{planId}
/
entitlements
/
{id}
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 planEntitlement = await client.v1.plans.entitlements.delete('id', { planId: 'planId' });

console.log(planEntitlement.data);
{
  "data": {
    "id": "<string>",
    "description": "<string>",
    "isGranted": true,
    "isCustom": true,
    "order": 123,
    "hiddenFromWidgets": [],
    "displayNameOverride": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "usageLimit": 123,
    "hasUnlimitedUsage": true,
    "hasSoftLimit": true,
    "resetPeriodConfiguration": {},
    "enumValues": [
      "<string>"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.stigg.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Server API Key

Path Parameters

planId
string
required

The plan ID

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$
id
string
required

The feature ID or custom currency ID of the entitlement

Required string length: 1 - 255
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$

Response

The deleted plan entitlement object.

Response object

data
FeatureEntitlementResponse · object
required

Feature entitlement response