Assign images to variants

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

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?

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

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.

1 Like

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

Is there any update on this?

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.

@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!

1 Like

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

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

1 Like