Can I Modify an existing Product Image src attribute?

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
413 62 60

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 (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps

View solution in original post

veto64
Shopify Partner
3 1 0

This is an accepted solution.

Replies 4 (4)

BrainStation23
Shopify Partner
413 62 60

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

Brain Station 23 PLC (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps
BrainStation23
Shopify Partner
413 62 60

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 (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps
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