Skip to content

Function: removeOrganization() ​

ts
function removeOrganization(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/serviceDesk/api/organization.ts:373

This method removes an organization from a service desk. If the organization ID does not match an organization associated with the service desk, no change is made and the resource returns a 204 success code.

Permissions required: Service desk's agent.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ body: { organizationId: number; serviceDeskId?: string; }; serviceDeskId: string; }-
parameters.body{ organizationId: number; serviceDeskId?: string; }-
parameters.body.organizationId?numberList of organizations, specified by 'ID' field values, to add to or remove from the service desk.
parameters.body.serviceDeskId?stringService desk Id for which, organization needs to be updated
parameters.serviceDeskId?stringThe ID of the service desk from which the organization will be removed. This can alternatively be a project identifier.
options?RequestOptions-

Returns ​

Promise<void>