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 createProductCategoryWithImagesWorkflow, updateProductCategoryWithImagesWorkflow, and deleteProductCategoryWithImagesWorkflow wrappers behind the /admin/product-categories routes.
Usage
Input
The category 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.