public ApiResponse<ApiSuccessResponse> transferAgentWithHttpInfo(String mediatype, String id, TransferData transferData) throws ApiException {
        com.squareup.okhttp.Call call = transferAgentValidateBeforeCall(mediatype, id, transferData, null, null);
        Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
public ApiResponse < ApiSuccessResponse > transferAgentWithHttpInfo ( String mediatype , String id , TransferData transferData ) throws ApiException { com . squareup . okhttp . Call call = transferAgentValidateBeforeCall ( mediatype , id , transferData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; }
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 ApiResponse&lt;ApiSuccessResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body