I have create a custom webapi for QuoteRequest. It is working fine with Magento 2.4.3 < but not working with Magento 2.4.4 with php 8.1

<?xml version="1.0"?>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/vendor_requestforquote/updatequote/" method="POST">
        <service class="Vendor\RequestForQuote\Api\UpdateQuoteDetailsInterface" method="updateQuoteDetail"/>
            <resource ref="anonymous"/>
            <parameter name="ajaxval" force="true">%ajaxval%</parameter>


     * Returns string
     * @api
     * @param string $ajaxval
     * @return string
    public function updateQuoteDetail($ajaxvalue);

Error on running setup:upgrade command

enter image description here


1 Answer 1


use mixed datatype in interface

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.