Skip to main content
Version: Node SDK

Update License

This method updates specific Licenses with the values passed into the body of the request.

Code Sample

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

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

const updatedLicense = await salable.licenses.updateMany([ await salable.licenses.update('{{LICENSE_UUID}}', 'userId_2');

Parameters

licenseUuid (required)

Type: string

The uuid of the license to be updated


granteeId (required)

Type: string or null

The value of the new granteeId. To un-assign the license set the granteeId to null.

Return Type

For more information about this request see our API documentation on license object