Focusing on managing products, variants, and collections through the API.
Hi there, I have a problem uploading images to products via Rest API. The request is returning code 200, but the image is not on the site. More details below:
I'm sending a POST to "admin/api/2024-04/products/9225362407714/images.json" with the following body:
{
"image": {
"attachment": "iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAMAAABC4vDmAAAAA1BMVEWwABUP+SchAAAALElEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAHgZViQAAd2fpbUAAAAASUVORK5CYII=",
"filename": "image.png"
}
}
It's returning code 200, but the response is an empty array, and the image is not in the product:
{
"images": []
}
Can someone help me please? 😄