Rest console, export as AJAX does not include contentType header:
options.contentType = “application/json”;
Example generated by the tool did not work with POST and PUT:
var options = {};
options.data = JSON.stringify({
“ytunnus”: “66766”
});
options.type = ‘POST’;
options.url = ‘https://eu-api.backendless.com/B80B1E700/050**81D/data/yritys’;
options.success = function(resp, status, xhr) {
console.log(resp, status, xhr);
};
options.error = function(xhr) {
console.log(JSON.parse(xhr.responseText), xhr);
};
$.ajax(options);