addCustomers method

Future<void> addCustomers({
  1. required String serviceDeskId,
  2. required ServiceDeskCustomerDTO body,
})

Adds one or more customers to a service desk. If any of the passed customers are associated with the service desk, no changes will be made for those customers and the resource returns a 204 success code.

Permissions required: Service desk administrator

Implementation

Future<void> addCustomers(
    {required String serviceDeskId,
    required ServiceDeskCustomerDTO body}) async {
  await _client.send(
    'post',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/customer',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
    },
    body: body.toJson(),
  );
}