Hi @channel,
We are trying to make an update API from custom sidebar App. But we are getting Error code : 403 and Error message : " Url not found ". We are using client.request.put method for making API call . We were not sure why this is happening . We have configured URL in white listed domain in manifest file as well.
Could you please help us to resolve the issue . Please find the code snippet below.
var url = `https://${iparamsDetails["fd_domain"]}/api/v2/agents/${loggedInAgentId}`;
let bodyData = JSON.stringify({
group_ids: currentSelectedGroup,
});
var options = {
headers: {
Authorization: "Basic <%= encode(iparam.fd_apikey) %>",
"Content-Type": "application/json",
},
body: bodyData,
};
let updatedAgentResponse = await client.request.put(url, options)