Error with Function in Recruit {"code":"4834","message":"Invalid Ticket Id"}

Error with Function in Recruit {"code":"4834","message":"Invalid Ticket Id"}

Trying to create a workflow in Recruit where a function updates the Candidates status.

But I keep getting this error
  • {"code":"4834","message":"Invalid Ticket Id"}

Code is below

  1. cId = 52130900000xxxxxx;
  2. response = invokeurl
  3. [
  4. url :"https://recruit.zoho.com/recruit/v2/Candidates/" + cId.toString()
  5. type :GET
  6. connection:"zohorecruit"
  7. ];
  8. info "response: " + response;
  9.   map = Map();
  10.     map.put("Candidate_Status", "Documents Received");
  11.     updateResp = zoho.recruit.updateRecord("Candidates", cId, map);
  12.     info updateResp;
  13. responseFinal = invokeurl
  14. [
  15. url :"https://recruit.zoho.com/recruit/v2/Candidates/" + cId.toString()
  16. type :PUT
  17. parameters:map.toString()
  18. connection:"zohorecruit"
  19. ];
  20. info responseFinal;