Archive or unarchive category
category_actionArchive or unarchive a category to manage storefront visibility, keeping it restorable; optionally archive variants if a product would lose its last active category.
Instructions
Archive a category (soft delete: hidden from the storefront, restorable) or unarchive it. If the category is the only one of a product with non-archived variants, archiving requires archive_variants=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Category ID (UUID). | |
| action | Yes | Action to perform. | |
| archive_variants | No | Archive only: also archive the variants left without any active category. |