Hi,
I'm trying to setup a JS file using a datasource acrross multiple pages to update an item. I can't seem to get the URL to include the _id for the specific entry to update(i think thats the problem). I pulled the code below from another question. How can I inlcude the WHERE parameter?
The error I get is...
{"code":"DBSP260","description":"Object must be present in the request body"}
var update_trip_day = new Apperyio.DataSource(HaMadrich_trips_update_flights, {
'onBeforeSend': function(jqXHR) {
Code: Select all
},
//onComplete eventHandler
'onComplete': function(jqXHR, textStatus) {
console.log("complete");
},
//onSuccess eventHandler
'onSuccess': function(data) {
console.log("success");
},
//Error eventHandler
'onError': function(jqXHR, textStatus, errorThrown) {},
'responseMapping': [],
'requestMapping': [{
'PATH': ['X-Appery-Database-Id'],
'TYPE': 'STRING',
'HEADER': true,
'ATTR': '{database_id}'
}]
});