articleUpdate graphql API shouldn't remove existing article image if updating new image is failed

Admin API version: 2025-01

Before updating article:

Trying to update a article with an invalid image URL:

Here I lost my article image after the fail attempt:

1 Like

Hey @Md_Maruf_Ahmed, it seems almost as if the image is being replace before the failure occurs, resulting in an empty image.

Can you share the x-request-id from the mutation response headers? I’ll see what I can find out for you.

Hi @KyleG-Shopify
I tried again with Postman. Here is my x-request-id:
db5d0394-a6f1-425d-90dc-aaff0c360f37-1747801341

Thank you. I’m looking in to it.

1 Like

Hi @KyleG-Shopify
I’m following up about this issue. Please let me know if you required any more context from me.

I have raised this with our team and currently waiting to hear back. I’ll let you know as soon as I have more to share.

For a temporary workaround, I would recommend first uploading all of your files using a mutation like fileCreate and then use that file url in your article mutations. This will ensure that any issues processing the new media won’t unexpectedly remove the old media.

I’ll continue to update you on the original issue you’ve found as I learn more.

1 Like