Skip to main content
Version: Node SDK

Manage Seats

Assign, unassign and replace grantees on seats.

Code Sample

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

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

await salable.subscriptions.manageSeats('17830730-3214-4dda-8306-9bb8ae0e3a11', [
{
type: 'assign',
granteeId: 'userId_1'
},
{
type: 'unassign',
granteeId: 'userId_2'
},
{
type: 'replace',
granteeId: 'userId_3',
newGranteeId: 'userId_4',
}
]);

Parameters

subscriptionUuid (required)

Type: string

The UUID of the Subscription

Options (required)

Type: ManageSeatOptions[]

OptionTypeDescriptionRequired
typeenumassign: Will assign an empty seat to the provided granteeId. unassign: Will unassign the seat from the provided granteeId. replace: Unassigns the seat from the provided granteeId and then assigns it to the newGranteeId value.
granteeIdstringThe granteeId the action is being performed on.
newGranteeIdstringOnly applicable to the replace action. The new granteeId on the seat.

Return Type

For more information about this request, see our API documentation on subscription manage seats