Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By jagannew
#786144
HI ,
i am Delete file from frontend using Process maker RestAPI. but i got the following error mesage

{"error":{"code":400,"message":"Bad Request: **ID_CASES_INPUT_DOCUMENT_DOES_NOT_EXIST**"}}


this is my CODE:

var app_doc_uid=XXXXXXXXXXXXXXXXX;
var del_index=1;
var caseId=XXXXXXXXXXXXXXX;

var requestYmc = $http({
method: 'POST',
url: $scope.serverUrl + $scope.workspace + '/oauth2/token',
data: $scope.credentials
});
requestYmc.success(function (html) {


$scope.AccessToken = html.access_token;
var requestZmc = $http({
method: 'DELETE',
url: $scope.serverUrl + 'api/1.0/'+$scope.workspace+'/cases/'+caseId+'/'+del_index+'/input-document/'+app_doc_uid,
headers: { 'Authorization': 'Bearer ' + html.access_token }
});
requestZmc.success(function (html) {

console.log(html);



});
});

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]