getOrganizations2 method

Future<PagedDTOOrganizationDTO> getOrganizations2({
  1. required String serviceDeskId,
  2. int? start,
  3. int? limit,
  4. String? accountId,
})

This method returns a list of all organizations associated with a service desk.

Permissions required: Service desk's agent.

Implementation

Future<PagedDTOOrganizationDTO> getOrganizations2(
    {required String serviceDeskId,
    int? start,
    int? limit,
    String? accountId}) async {
  return PagedDTOOrganizationDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/organization',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
    },
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
      if (accountId != null) 'accountId': accountId,
    },
  ));
}