Assign images to variants


#1

How would I go about assigning images to specific variants (either when creating or updating a product)?


#2

Hey Tam,

At the moment this is not possible thorough the API. You would have to do it via the UI.

Sorry!

How important is it to be able to do this via the API?


#3

We’re looking to sync ~1000 products, each with 1 - 15+ variants, and each variant having anywhere between 1 - 10+ images. So relatively important!


#4

Okay so its important to emphasise that this is undocumented and officially unsupported.

We’re working on opening up something that will enable this. I’ll let you know when its deployed, should be tomorrow based on expected schedules.


#5

We’re not on track to deploy this today @tam Looking likely for Monday. I’ll update when live with method.


#6

Is there any update on this?


#7

It’s been finished today and should be deployed tomorrow as long as there aren’t any problems with the daily deploy. I’ll update tomorrow with confirmation.


#8

@tam New Feature has now been deployed.

In order to update images you need to send a PUT request to the https://api.veeqo.com/product_variants/:variant_id end point.

The request should just be:
{"images": [{"id": :image_id }]}

The image needs to be uploaded and available before this request is made.
The images can be retrieved by sending at GET request to: https://app.veeqo.com/products/:product_id/product_images

Please remember that this is undocumented and officially unsupported. But of course I’m happy to help if you have any troubles!


#9

How do I get the image IDs? They don’t seem to be returned in the product detail.


#10

sorry, forgot to mention that the last comment. I’ll edit it now.

Edit info:

The images can be retrieved by sending at GET request to: https://app.veeqo.com/products/:product_id/product_images