Skip to content

Function: addOrganization() ​

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

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

This method adds an organization to a service desk. If the organization ID is already 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 to which the organization will be added. This can alternatively be a project identifier.
options?RequestOptions-

Returns ​

Promise<void>