Organize a catalog
Organize a catalog
Add the Copenhagen Lamp to a stable browse category and a campaign collection. Use categories for hierarchy and collections for a curated selection. Neither structure changes the identity of the product or its variants.
Before you begin
Use an existing product and an Admin connection with catalog permissions. Read its current categories and collections before changing membership. Treat supplied association lists as intentional membership: preserve existing associations you want to keep.
1. Create a category
For a child category, include the returned parent ID as parentId in a subsequent create request.
Skip creation if the intended category already exists.
2. Create a collection
Keep the collection ID for membership updates. Its name does not define an automatic rule for selecting products.
3. Assign the product
The example assigns one category and one collection. Include other existing memberships if they should remain. For merchandising order, use categoryReorderProducts or collectionReorderProducts with fresh membership data.
Verify
Load the category or collection through Storefront in the buyer’s context. Confirm the lamp is returned with its expected price and availability. If Admin membership exists but Storefront results are empty, inspect catalog visibility. Do not keep reassigning the same membership to fix a publication problem.