Is it possible to use a custom HTTP VERB like MERGE with jQuery.ajax ()? I am interacting with the OData API, which expects the verb MERGE when posting record updates.
The problem I am facing is that when I use "MERGE" in the ajax () request, it does not send data to the server. It just sends a MERGE request without data, so the OData service rejects it.
When I change the request to PUT, the OData service sends back 500 errors.
My options are mainly for figuring out how to get “MERGE” calls to send data along with the request, do DELETE and then POST (delete and recreate the record with each update) or figure out how to change the OData service to accept PUT for updates.
Let me know if you have ideas on how to make jQuery.ajax () send data with a MERGE request.
Thank,
Dave
source
share