I’m currently facing an issue with a Microsoft Graph API call in a Freshdesk V3 Custom App. Specifically, I’m attempting to retrieve a user’s profile image using the following endpoint: https://graph.microsoft.com/v1.0/users/{emailId}/photo/$value
The request works as expected in Postman, with or without Accept headers: Accept: image/jpeg
However, when attempting the same request within the Freshdesk app, it returns a 415 error with “Unsupported content type”:
It would be very helpful to know if Freshdesk has specific limitations or requirements around Content-Type when handling image data or binary content. Any insights or suggestions for workarounds would be much appreciated.
Hey @Kiran,
The request method only supports the mentioned content-types - application/json, application/xml, text/html, text/xml, application/jsonp, text/plain, text/javascript and application/vnd.api+json.
Alternatively, you can use SMI with external npm libraries like axios to make API calls.