code: public ApiSuccessResponse redirect(String id, RedirectData redirectData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = redirectWithHttpInfo(id, redirectData);
          return resp.getData();
      }
docs: Redirect a call
  Redirect a call to the specified destination.
  @param id The connection ID of the current call to redirect. (required)
  @param redirectData  (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body