I need to pass an url of an ftp to be the product image by the magento api, can I do this? Something like
{
"attribute_code": "image",
"value": "https://upload.wikimedia.org/wikipedia/commons/5/5c/Alan-Walker-_Faded.jpg"
}
I found the api to pass the image but it asks for a file and a base64 as below but this way it doesn't answer me.
{
"entry": {
"media_type": "image",
"label": "new_picture",
"types": [
"image"
],
"file": "pic1.jpg",
"content": {
"base64_encoded_data": "",
"type": "image",
"name": "pic1.jpg"
}
}
}