Skip to content

Function: addSharePermission() ​

ts
function addSharePermission(
   client, 
   parameters, 
   options?
): Promise<object[]>;

Defined in: src/server/api/filters.ts:220

Adds a share permissions to the given filter. Adding a global permission removes all previous permissions from the filter

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ edit?: boolean; groupname?: string; id: string; projectId?: string; projectRoleId?: string; type?: string; userKey?: string; view?: boolean; }-
parameters.edit?boolean-
parameters.groupname?string-
parameters.id?stringThe filter id.
parameters.projectId?string-
parameters.projectRoleId?string-
parameters.type?string-
parameters.userKey?string-
parameters.view?boolean-
options?RequestOptions-

Returns ​

Promise<object[]>