I have an API operation defined on Azure APIM that accepts json payload. The payload comprises of, among other attributes, an attribute which has a document in form of a base64 encoded string. For certain payloads, which might potentially have invalid characters in the base64 encoded string, the APIM throws error 403 if the Content-Type header to "application/json". If the Content-type header is removed, it works fine.
My question is: Does APIM run any sort of validation on the payload if a content type is set? And if so, is there a way to get around that?