Update Product Category
woocommerce_update_product_categoryUpdate a product category's name, description, or parent by providing its ID and the fields to change.
Instructions
Update fields on an existing product category.
Args:
id (number, required)
Any subset of: name, description, parent
response_format ('markdown'|'json'): default 'markdown'
Returns: The updated category object.
Error Handling:
Returns "Error: Resource not found (404)" if the ID doesn't exist.
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>"
},
"name": "woocommerce_update_product_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The category's numeric ID | |
| name | No | ||
| parent | No | ||
| description | No | ||
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |