getOrganizations2 method
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,
},
));
}