vtex_add_sku_to_subcollection
Adds an SKU to a specified VTEX subcollection by subCollectionId, enabling catalog grouping for Legacy CMS Portal-compatible collections.
Instructions
[POST] Add SKU to subcollection | Category: Subcollection | Path: /api/catalog/pvt/subcollection/:subCollectionId/stockkeepingunit | Description: >⚠️ There are two ways to configure collections, through Legacy CMS Portal or using the Beta Collection module. This endpoint is compatible with [collections configured through the Legacy CMS Portal] | Path params: subCollectionId
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": {
"subCollectionId": "<subCollectionId>"
},
"name": "vtex_add_sku_to_subcollection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body (JSON object) | |
| subCollectionId | Yes | Path parameter: subCollectionId |