How to update the record's status via API in Zoho recruit with Delug Script? πŸ“

22/03/2024

To update a record in Zoho Recruit, we need to target specific endpoints. Using the PUT method in the endpoint https://recruit.zoho.com/recruit/v2/{module_api_name} is effective only if the record is not blocked. However, if you intend to change the status of a blocked record, you must utilize the following endpoint: https://recruit.zoho.com/recruit/v2/Candidates/status. This endpoint is exclusively available for modules such as candidate, job opening, and offer.

This is the officcial documentantion to how to do this operation and the scope that you need to do this oparation.

Let’s delve into the code:

JobOpeningId = "731279000000808258";
CandadidateId = "731279000000791031";
inputData = "{\"data\": [{\"ids\":[" + CandadidateId + "],\"jobids\":[" + JobOpeningId + "],   \"Candidate_Status\":\"No preseleccionado\",\"comments\":\"test\"}]}";
response = invokeurl
[
	url :"https://recruit.zoho.com/recruit/v2/Candidates/status"
	type :PUT
	parameters:inputData
	connection:"recruit"
];
info response;

Feel free to explore and adapt this code for your specific use case. For further details, please refer to the Zoho Recruit API documentation.

Happy coding! πŸš€