Problem description:
When use PUT API calls for change "types" field on one image of product, thera are problems.
For exampe, If we want assing Types="Thumbnail" to image with ID 15 and there is other image in the same product that have alrady assigned "thumbnail" and this last image have higher ID, for example ID 19, then PUT action will not update Types field. In the opossite case, if we try assign "Thumbnail" to image with id 19 and image with ID 15 have assigned this type, PUT action will update them successful.
In resume, PUT media API Call apply change at types values only when ID of image is lower than ID image that have "Types" values assigned before.
Magento 2
Version: 2.1.x (tested on 2.1.1 and 2.1.3)
EC2 Instance of AWS Amazon with CentOS
PHP v7.0.10
Mysql 5.6
Also was tested on local environment with Vagrant with CentOS.
}
}
}
}
+1
Same. In 2.1.7 both "types" and "position" seem to have no effect. The last image imported shows up first and is marked as thumbnail, small_image, and image no matter what I set these to.
Would love to see a fix on this! We need to be able to set "types" via API.
@chm1975, thank you for your report.
We've created internal ticket(s) MAGETWO-81393 to track progress on the issue.
Hi @chm1975
This ticket has been marked as "Triage Wanted" due to low user involvement over time. Over the next 2 weeks we are looking for additional community feedback to decide if it should be archived or not. More information on this is available on the GitHub wiki.
Thank you for collaboration.
@chm1975 thank you for your report.
Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily.
You may learn more about this initiative following this link.
Please feel free to comment or reopen the ticket if you think it should be reviewed once more. Thank you for collaboration.
Problem still exists, it does not matter if the ID is smaller. You simply can not update the types property with the rest api.
It does nothing, you currently have to delete the image and reupload it...
Please reopen and fix this issue. Thank you :)
The issue apparently still exists, we're also having problem with this
It's really an issue when you wnat to update images and cannot set the type. Please reopen this ticket,