Skip to content

Function: upsertRequestTypePermission() ​

ts
function upsertRequestTypePermission(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  id?: string;
  permissions?: object[];
}>;

Defined in: src/serviceDeskServer/api/requestTypePermissions.ts:26

Upsert the permissions for a customer request type. This operation will overwrite any existing permissions.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ allowlist?: object[]; requestTypeId: string; serviceDeskId: string; }-
parameters.allowlist?object[]-
parameters.requestTypeId?stringThe id of the request type.
parameters.serviceDeskId?stringThe id of the service desk.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; id?: string; permissions?: object[]; }>