code: public ApiSuccessResponse switchToListenIn(String id, MonitoringScopeData monitoringScopeData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = switchToListenInWithHttpInfo(id, monitoringScopeData);
          return resp.getData();
      }
docs: Switch to listen in
  Switch to the listen in monitoring mode. When listen in is enabled and the agent receives a call, the supervisor is able to listen to the agent and the customer, but they can&#39;t hear the supervisor.
  @param id The connection ID of the call being monitored. (required)
  @param monitoringScopeData  (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body