Update Custom Fields Not working

Update Custom Fields Not working

Hi Guys,

I am trying to update the custom fields from a deluge script, however its not updating the ticket.

Syntax as follows;

recordValue = {"cf":{"cf_ticket_link":alarmurl, "cf_deployment":deployment}};

response = invokeurl
[
url :ticketurl
type :PATCH
parameters:recordValue
connection:"myconn"
];

Any ideas?