code: public ApiSuccessResponse transferAgent(String mediatype, String id, TransferData transferData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = transferAgentWithHttpInfo(mediatype, id, transferData);
          return resp.getData();
      }
docs: Transfer an interaction
  Transfer the interaction to the specified agent.
  @param mediatype The media channel. (required)
  @param id The ID of the interaction. (required)
  @param transferData  (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body