getRequestTypeById method

Future<RequestTypeDTO> getRequestTypeById({
  1. required String serviceDeskId,
  2. required String requestTypeId,
  3. List<String>? expand,
})

This method returns a customer request type from a service desk.

This operation can be accessed anonymously.

Permissions required: Permission to access the service desk.

Implementation

Future<RequestTypeDTO> getRequestTypeById(
    {required String serviceDeskId,
    required String requestTypeId,
    List<String>? expand}) async {
  return RequestTypeDTO.fromJson(await _client.send(
    'get',
    'rest/servicedeskapi/servicedesk/{serviceDeskId}/requesttype/{requestTypeId}',
    pathParameters: {
      'serviceDeskId': serviceDeskId,
      'requestTypeId': requestTypeId,
    },
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
    },
  ));
}