vtex_add_similar_category
Add a similar category to a VTEX product using its product ID and category ID to link related catalog categories.
Instructions
[POST] Add similar category | Category: Similar category | Path: /api/catalog/pvt/product/:productId/similarcategory/:categoryId | Description: Adds a similar category to a product. ## Permissions Any user or API key must have at least one of the appropriate [L | Path params: productId, categoryId
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": {
"productId": "<productId>",
"categoryId": "<categoryId>"
},
"name": "vtex_add_similar_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (JSON object) | |
| productId | Yes | Path parameter: productId | |
| categoryId | Yes | Path parameter: categoryId |