batch update variant images
PUT https://{handle}.myshopline.com/admin/openapi/v20250601/variant_images/:product_id.json
handle
: The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com
, the store handle is open001
.Batch update variant images in the "Variants Multiple Images".
Path Parameters
- product_id string requiredThe ID of the productExample:
16049619743346320200470282
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
reqobject
Request Parameters.variant_imagesobject[]
Data List.urls arrayA list of image URL addresses, not exceeding 20. When empty, the existing data will be cleared. make sure the provided URL is accessible.Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.png
variant_id stringA unique ID of the variant.Example:18050375907221969070393099
Response
- 200
- 401
- 429
API Explorer
Debugger
Was this article helpful to you?