Product images not updating through admin api

Highlighted
New Member
7 0 0

Hi community,

I am updating images through shopify admin api, i am deleting the images and then re-uploading them through products api sending a put request to the product, but my images position is not updating, can you explain the reason for this ?

 

Deleting images request

https://{{apikey}}:{{password}}@{{yourstore}}.myshopify.com/admin/products/product_id.json

{
"product":{"images": [
 
]
}
}

updating images request

https://{{apikey}}:{{password}}@{{yourstore}}.myshopify.com/admin/products/product_id.json

 

{
"product":{"images": [
{
"position": 1
},
{
"position": 2
},
{
"position": 3
},
{
"position": 4
}
]
}
}
0 Likes
Highlighted
New Member
7 0 0

please help anyone..

thanks

0 Likes