Hello everyone!
I’m trying to request the REST API in order to insert, in an instance, a variable of type String, from a Jquery.ajax() code.
Here is the code :
$.ajax(
{
url: 'http://localhost:8080/engine-rest/process-instance/'+processInstanceId+'/variables/Test2',
type: 'PUT',
contentType: 'application/json',
dataType : 'json',
data: {
"value" : JSON.stringify(JsonWeightMeasures),
"type": "String"
}
}
);
This code is in a script tag of an embedded form.
processInstanceId is a string variable and JsonWeightMeasures is a JSON variable.
Here is the error generated :
What can I do? What generates this error?
Thank you in advance for your help and have a nice day !