addOrganization method
Future<void>
addOrganization({
- required String serviceDeskId,
- required OrganizationServiceDeskUpdateDTO body,
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.
Implementation
Future<void> addOrganization(
{required String serviceDeskId,
required OrganizationServiceDeskUpdateDTO body}) async {
await _client.send(
'post',
'rest/servicedeskapi/servicedesk/{serviceDeskId}/organization',
pathParameters: {
'serviceDeskId': serviceDeskId,
},
body: body.toJson(),
);
}