Commerce
unpublishAllExcept
Unpublish All Except
Keep ONLY the named products live and send every other live product back to draft: the inverse of publishAllProducts, and the verb behind "deactivate everything that is not on the forever menu, but…
Arguments
appIdstringrequiredThe Studio app ID whose catalog to change.keepProductIdsstring[]requiredThe commerce product IDs to KEEP live. Every other live product goes back to draft.
Returns
Bounded per call: if the catalog holds more live products than one call can draft it returns hasMore:true, so call again with the same keep list.
Ask for it
The Cloud routes these requests to this verb.
- unpublish everything except these
- keep only these live
- clear the storefront down to this list
Pair it with
The verbs that finish the job.