Skip to main content
Version: v2.2.0

Update Usage

Increments usage count on a License

Code Sample

import { Salable } from '@salable/node-sdk';

const salable = new Salable('{{API_KEY}}');

await salable.usage.update('{{LICENSE_UUID}}', '{{FEATURE_VARIABLE_NAME}}', {
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

OptionDescription
incrementThe number to increment the count by