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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"action": "<action>"
},
"name": "category_action"
}
}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. |