function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marion Dorsett 11Marion Dorsett 11 

ContentVersion response now returns UNSUPPORTED_MEDIA_TYPE

Does anyone know what changed w/ the endpoint:

/services/data/v55.0/sobjects/ContentVersion/

On 9/18/2023 we noticed that files were not being uploaded to contact records. I found that the code to upload the files is now returning:

[
    {
        "message": "MediaType of 'application/json,application/pdf' is not supported by this resource",
        "errorCode": "UNSUPPORTED_MEDIA_TYPE"
    }
]

After looking at my test setup in Postman, I got the same result, so something has changed in the Salesforce API... but I can't find any documentation that tells me how to modify the request.

Has anyone else experieneced this, and is there a fix?

jhon drakejhon drake
Hi there, I encountered a similar issue with the /services/data/v55.0/sobjects/ContentVersion/ endpoint. It seems to be related to unsupported media type 'application/json,application/pdf'. I'm also looking for a fix or any insights from the community. Appreciate any help or experiences shared regarding this problem. for more visit https://toolsbuyingguide.com/