const payload = {
data: [
{
Contact_Role: {
id: roleId,
},
},
],
};
const response = await ZOHO.CRM.CONNECTION.invoke("crm_connection", {
method: "PUT",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
console.log("Zoho CRM Response:", response);
Struggling a lot, no matter how i do this, i am getting the same result.