URGENT! Custom Function FORBIDDEN","message":"You are not authorized to access this resource"

URGENT! Custom Function FORBIDDEN","message":"You are not authorized to access this resource"

This function was working perfectly putting into Authtoken variable the ZSC Key. Creating a new Department, the same custom function (copy and paste) is not working.

Running the Custom function manually, it display this error:
updateTicket : {"errorCode":"FORBIDDEN","message":"You are not authorized to access this resource."}

Please, need help to generate correct Authtoken to run this Custom Function.
I have asked to the support on monday. Today is Thursday and I didn't get a definitive answer....We're wasting a lot of time.

Just tried to generate Auth Token using Browser mode (see attachment)


ORGID = "XXX";
Authtoken = "-------5c5c408b73cc32373462b0528c";

if(sub.containsIgnoreCase("Request Gen"))
{
updateTicket = zoho.desk.update(ORGID,"tickets",ticketID,{"category":"Richiesta Generica"});
info "updateTicket : " + updateTicket;
}