Hello developers,
I am using the REST API of Bonita BPM Community version 7.0.0.
As a customer, REST I use JQuery 2.1.4.
What is happening to me is that when I call REST services with the PUT method, it works well and operation makes it, but the answer always gives me an error.
Example
$.ajax({
type: "PUT",
url: 'http://127.0.0.1:34242/bonita/API/bpm/humanTask/2',
contentType: 'application/json',
context: this,
dataType: "json",
crossDomain: true,
xhrFields: {
withCredentials: true
},
data: JSON.stringify({'assigned_id':4}),
success: function (res) {
console.log(res);
},
error: function (err) {
// **ENTER HERE**
}
});