Zend certified PHP/Magento developer

How to update products images roles with rest Api for configurable products?

either unique or configurable product, we send images the same way. The only difference is that configurable product have 3 role, unique have 4, because they can be “swatch”,
when do update images roles for configurable was lost

enter image description here