Ok, just to be clear how we did this.
First of all we only use POST type of requests that trigger a server side script. We never PATCH the DB directly. If that is what you’re doing, meaning using the API directly to patch… I would need to test if that works as well.
Second, if you would be OK to do a POST to a server side custom script and inside that server side script you patch what you need to patch it works as I suggested, at least for us.
$.ajax({
type: ‘POST’,beforeSend: function(request) { request.setRequestHeader('X-DreamFactory-Api-Key', AP_id); request.setRequestHeader('X-DreamFactory-Session-Token', UT); request.setRequestHeader('Access-Control-Allow-Origin', '*'); }, url: AP_api + 'UpdateUserDetails?n1=' + variable1+ '&n2=' + variable2 + '&n3=' + variable3, dataType: "TEXT", contentType: "JSON", success: function(response) { console.log(response); }, error: function(xhr, thrownError) { console.log(thrownError); } });
On the server side we do the patch. Seems a bit of an overkill maybe but since we patch mutliple tables / records this is the easiest