Update Usage
Increments usage count on a License
Code Sample
const { SalableApi } = require('@Salable/node-sdk');
const salable = new SalableApi('API-KEY');
await salable.usage.updateUsage('41cf33a2-136e-4959-b5c7-73889ab94eff', 'new-feature', {
increment: 2,
});
Parameters
licenseUuid (required)
Type: string
The uuid
of the License to update the usage on
featureVariableName (required)
Type: string
The variable name of the feature to be updated
countOptions (required)
Type: ICountOptions
Option | Description |
---|---|
increment | The number to increment the count by |