- Tue Aug 09, 2016 7:39 am
#786282
Dear Team,
Here i am using processmaker rest api to delete input file.
I am developing the below code to remove input file:
Here i am getting the following error :
{"error":{"code":400,"message":"Bad Request: **ID_CASES_INPUT_DOCUMENT_DOES_NOT_EXIST**"}}
Please help me
Thanks and Regards
Sowjanya
Here i am using processmaker rest api to delete input file.
I am developing the below code to remove input file:
Code: Select all
var app_doc_uid=$scope.php_script_response2[i].app_doc_uid;
var del_index=1;
var app_uid=$scope.caseId;
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/'+app_uid+'/'+del_index+'/input-document/'+app_doc_uid,
headers: { 'Authorization': 'Bearer ' + html.access_token }
});
requestZmc.success(function (html) {
});
});
Here i am getting the following error :
{"error":{"code":400,"message":"Bad Request: **ID_CASES_INPUT_DOCUMENT_DOES_NOT_EXIST**"}}
Please help me
Thanks and Regards
Sowjanya