I’m still working with a private app that uses the REST Admin API to upload Products. We’ve just started getting the following error when uploading a Product:
{"legacy_image_id":["must be for this product"]}
I’m still in the middle of the rewrite to use the GraphQL API. I haven’t been able to find the cause or workaround for this yet - would appreciate some insight as to why we’re suddenly getting this error here?
Hi Andrew,
Thanks for reaching out.
The error message is unclear and we’re working on addressing that.
In the meantime, this likely means that you are attempting to assign an image to a variant which doesn’t belong to the parent product.
Can you share the value of the x-request-id header from one of your requests? It would help us confirm what is going on.
Thanks!
Thanks for the update - here’s the request ID:
x-request-id: 69411459-ac55-4e84-ad1b-b22f44102376-1761686233
Hey Andrew,
Thanks for sharing that.
We identified the issue and have a fix.
In the meantime, you can use image_id: null instead of image_id: 0 and that should give you the old behaviour.
Once the fix has been deployed, the old behaviour will work, but I cannot give you a time estimate of when that deploy will go out.
Hope that helps!
Thanks - have applied the fix and working successfully at my end. Thanks for your quick support here.