When updating with ODataV4Adaptor use put instead of patch

Hi, I want to use HTTP PUT instead of HTTP PATCH. Is it possible?
Thanks.

2 Replies

EA Evgeny Agusev June 11, 2019 07:43 AM UTC

this.data = new DataManager({
url: 'http://localhost:64691/odata/',
adaptor: new ODataV4Adaptor({ updateType: 'PUT' })
});


HJ Hariharan J V Syncfusion Team June 12, 2019 10:00 AM UTC

Hi Evgeny, 

Thanks for contacting us. 

Yes, you can change PUT instead of PATCH request using updateType property of data manager.  

this.data = new DataManager({ 
      url: 'odata/', 
      adaptor: new ODataV4Adaptor({ updateType: 'PUT' }) 
    }); 

Please get back to us if you need further assistance from us. 

Regards, 
Hariharan 


Loader.
Up arrow icon