{"errors":[{"id":"500","title":"Servlet execution threw an exception"}]}
Here's the call to move a file to trash. The resource_id is accurate and the file is present.
- header = Map();
- header.put("Accept","application/vnd.api+json");
- data = Map();
- data_param1 = Map();
- att_param1 = Map();
- att_param1.put("status",51);
- data_param1.put("attributes",att_param1);
- data_param1.put("type","files");
- data.put("data",data_param1);
- response = invokeurl
- [
- url :"https://www.zohoapis.com/workdrive/api/v1/files/" + resource_id
- type :PATCH
- parameters:data.toString()
- headers:header
- connection:"workdrive_all"
- ];
- info response;
The response, some of the time, is
- {"errors":[{"id":"500","title":"Servlet execution threw an exception"}]}
Sometimes it works.
Sometimes it does not.
I'll post more, in the form of a screen recording, if necessary.
Insights please and thank you.