code: public ApiSuccessResponse switchToBargeIn(String id, MonitoringScopeData monitoringScopeData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = switchToBargeInWithHttpInfo(id, monitoringScopeData);
          return resp.getData();
      }
docs: Switch to barge-in
  Switch to the barge-in monitoring mode. If the agent is currently on a call and T-Server is configured to allow barge-in, the supervisor is immediately added to the call. Both the monitored agent and the customer are able to hear and speak with the supervisor. If the target agent is not on a call at the time of the request, the supervisor is brought into the call when the agent receives a new call.
  @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