Change Status

Purpose 

To change the status of a candidate or job opening using Widget APIs.

Request Format

ZOHO.RECRUIT.API.changeStatus({
    "Entity": "{module_api_name}",
    "APIData": {
        "id": ["{candidate_id}"],
        "Candidate_Status": "{candidate_status}",
      "comments" : "{comments}"
    }
});

Possible Module Names - candidate, job opening

Request Format

CopiedZOHO.RECRUIT.API.changeStatus({
    "Entity": "Candidates",
    "APIData": {
        "id": ["14501000001409982"],
        "jobids": ["14501000001798704"],
        "Candidate_Status": "Completed"
    }
}).then(function(successResponse) {
   
}, function(failureResponse) {
  
});

Success Response

Copied{
   "data": [
       [
           {
               "code": "SUCCESS",
               "details": {
                   "Modified_Time": "2022-07-16T06:38:24+00:00",
                   "Modified_By": {
                       "name": "Patricia Boyle",
                       "id": "1450100000277007"
                   },
                   "Created_Time": "2022-07-16T06:38:18+00:00",
                   "id": "14501000001409982",
                   "Created_By": {
                       "name": "Patricia Boyle",
                       "id": "1450100000277007"
                   }
               },
               "message": "status changed",
               "status": "success"
           }
       ]
   ]
}