media is provided, the entire existing gallery is swapped for the new list; when icon is provided, the existing icon image is swapped (pass null to clear it). Omitted fields are left untouched. At most one image keeps is_thumbnail and one keeps is_banner — the first flagged entry wins and later flags are silently dropped. Usually invoked through the createProductCollectionWithImagesWorkflow, updateProductCollectionWithImagesWorkflow, and deleteProductCollectionWithImagesWorkflow wrappers behind the /admin/collections routes.
Usage
Input
The collection whose images are replaced.
New gallery; replaces all existing non-icon images (pass
[] to clear).New icon URL;
null removes the current icon, omit to keep it.Result
No return value.