Archive or unarchive category
category_actionArchive or unarchive a category (soft delete hides it from storefront, restorable). When archiving the only category with non-archived variants, pass archive_variants=true to archive them.
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. |