Skip to main content
Version: Node SDK

Update Permission

This method will update an existing permission

Code Sample

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

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

const permission = await salable.rbac.permissions.update('41cf33a2-136e-4959-b5c7-73889ab94eff', {
value: 'some-value',
type: 'some-type',
description: 'some-description',
dependencies: {
key: 'some-value',
},
});

Parameters

uuid (required)

Type: string

uuid of the permission you want to update


permissionDetails (required)

Type: IUpdatePermissionInput

The details to update on the permission

Return Type

Promise that resolves to the updated permission