Custom Button - change status not working

Custom Button - change status not working

void OfferExtended(string CS,bigint id,string Client_details)  

if(CS.equalsIgnoreCase("Available"))
{
Candidate_Status = "Interviewing";
Client_details = "Interview requested" + " by " + zoho.loginuserid + " " + zoho.currentdate + " " + zoho.currenttime;
updateMap = Map();
updateMap.put("candidateStatus",Candidate_Status);
updateMap.put("details",Client_details);
updateMap.put("authtoken","87b743fb8fad4d3dc933267b2c2033c8");
updateMap.put("candidateIds",id.toString());
updateMap.put("scope","recruitapi");
updateMap.put("version","2");
info "Status Changed to Interviewing and client details updated";
}
else
{
info "Status of the candidate is not New";
}