sometimes i have just one image, sometimes 4-5 images. I want to replace “alt” with generated in previous module alttag (same for each picture), then i will update images mata in woocommerce via rest api - here i need to PUT whole images sections in Json.
Any ideas? Thanks
What is the problem & what have you tried?
I tried many thing but couldnt do that, even ChatGPT didnt help.
Yes. Use the Array aggregator to rebuild the full images array and map the same alttag into alt for every item.
You need to take each image object coming from the WooCommerce response, keep the fields you still need like id, src, and name, and set alt to the generated alttag value before sending the final PUT.
So the idea is simple: one image in, or five images in, the aggregator outputs the same full array shape back, just with alt replaced on each object. Then send that aggregated array as the images field in the WooCommerce API call.
Ethan Marcellus- Automation Expert at Tuesday Wizard | Top Make Solution Partner | Make Community Contributor
in set variable i add variable name and value that is my generated alt-tag, then i aggregated ID and new variable and put into woocommerce in json:
{
“images”: [
{{116.array}}
]
}