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

remove_product_from_area

Remove a product from a product area's `products[]` in `.upg/portfolio.upg` (the product stays registered on the portfolio and in any other container). The inverse of `assign_product_to_area`.

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

Arguments

product_idstringrequired

Product id (from list_local_products)

area_idstringrequired

Product area id (from list_product_areas)

Returns

Shape
{ product_id, container_id, container_kind: "product_area", container_title?, removed }

removed: false (not an error) when the product was not a member, so retries are idempotent.

See Also