getOrganization method
This method returns details of an organization. Use this method to get organization details whenever your application component is passed an organization ID but needs to display other organization details.
Permissions required: Any
Response limitations: Customers can only retrieve organization of which they are members.
Implementation
Future<OrganizationDTO> getOrganization(int organizationId) async {
return OrganizationDTO.fromJson(await _client.send(
'get',
'rest/servicedeskapi/organization/{organizationId}',
pathParameters: {
'organizationId': '$organizationId',
},
));
}