Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.
Tools/Areas & Change Log/move_product_to_area

move_product_to_area

Move a product to a different product area: remove it from `from_area_id` (or, when omitted, from every area it currently sits in) and add it to `to_area_id`. Convenience over remove_product_from_area + assign_product_to_area.

Areas & Change Logatomic (single portfolio.upg flush).

Arguments

product_idstringrequired

Product id (from list_local_products)

to_area_idstringrequired

Destination product area id (from list_product_areas)

from_area_idstringoptional

Source area id to remove from; omit to remove from all areas

Returns

Shape
{ product_id, to_area_id, to_area_title?, removed_from: string[], added }

See Also