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)
Yes @Mughela_Chandresh we have logged and checked both URL and headers . We believe that we there will be no issue on URL and headers because its working in local as Expected but only on portal its not working
If possible, can you DM the zip file by removing all sensitive data from it? I will try reproducing the issue from my end. Please share the exact zip that you are using.