productSet mutation files create issue

Hello,
Trying to create/update a product using productSet mutation along with creation/update of media files.
I want the media to be replaced when new one if uploaded, however specifying duplicateResolutionMode to “REPLACE” throws error: Duplicate resolution mode ‘REPLACE’ is not supported for ‘MISSING’ media type.

Does that mean I need to know whether the image exists in Shopify before setting the REPLACE flag?

Hey @Kamil_Szewczyk,

Thanks for sharing this. Based on the error, it looks more to be related to a missing type field. Most likely the fileContentType FileContentType - GraphQL Admin

If that’s not it, I’d like to replicate this on my end to get a more complete picture. Can you share an example of the productSet mutation you’re making that is returning the error? If possible as well, sharing the x-request-id from the response headers will help me locate the request in our logs if needed.

Hi Kamil,

Are you still experiencing this issue, or can I mark this as solved?