Solved

Can I Modify an existing Product Image src attribute?

veto64
Shopify Partner
3 1 0

Can I Modify an existing Product Image src attribute?
I'm trying to update a Shopify Image via their API "Modify an existing Product Image"

I can update the ALT image attribute, as the example shows, but I cannot update the image source.

There is no explicit description of what is actually possible to update or modify.

Is the update of the src possible?

Accepted Solutions (2)
BrainStation23
Shopify Partner
260 43 41

This is an accepted solution.

@veto64. You can try this one:

 

https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/productUpdateMedia 

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com

View solution in original post

veto64
Shopify Partner
3 1 0

This is an accepted solution.

Replies 4 (4)

BrainStation23
Shopify Partner
260 43 41

Hi @veto64 . Are you using rest api or graphql?

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com
BrainStation23
Shopify Partner
260 43 41

This is an accepted solution.

@veto64. You can try this one:

 

https://shopify.dev/docs/api/admin-graphql/2023-10/mutations/productUpdateMedia 

Brain Station 23 PLC
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Email: js.team@brainstation-23.com
veto64
Shopify Partner
3 1 0

This is an accepted solution.

veto64
Shopify Partner
3 1 0

I do not know how to use the productUpdateMedia but its previous productImageUpdate graphql API

is doing the job.

Thanks