{"errors":[{"id":"500","title":"Servlet execution threw an exception"}]}

{"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.
  1. header = Map();
  2. header.put("Accept","application/vnd.api+json");
  3. data = Map();
  4. data_param1 = Map();
  5. att_param1 = Map();
  6. att_param1.put("status",51);
  7. data_param1.put("attributes",att_param1);
  8. data_param1.put("type","files");
  9. data.put("data",data_param1);
  10. response = invokeurl
  11. [
  12. url :"https://www.zohoapis.com/workdrive/api/v1/files/" + resource_id
  13. type :PATCH
  14. parameters:data.toString()
  15. headers:header
  16. connection:"workdrive_all"
  17. ];
  18. info response;
The response, some of the time, is
  1. {"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.