action vtex_get_api_catalog_pvt_collection_collection_id_subcollection { label: "Get Subcollection by Collection ID" 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](https://help.vtex.com/en/tutorial/adding-collections-cms--2YBy6P6X0NFRpkD2ZBxF6L).\n\nRetrieves all Subcollections given a Collection ID. A Subcollection is a [Group](https://help.vtex.com/en/tutorial/adding-collections-cms--2YBy6P6X0NFRpkD2ZBxF6L#group-types) within a Collection. \n## Response body example \n \n```json \n[ \n { \n \"Id\": 12, \n \"CollectionId\": 149, \n \"Name\": \"Subcollection\", \n \"Type\": \"Inclusive\", \n \"PreSale\": false, \n \"Release\": true \n }, \n { \n \"Id\": 13, \n \"CollectionId\": 149, \n \"Name\": \"Test\", \n \"Type\": \"Exclusive\", \n \"PreSale\": true, \n \"Release\": false \n }, \n { \n \"Id\": 14, \n \"CollectionId\": 149, \n \"Name\": \"asdfghj\", \n \"Type\": \"Inclusive\", \n \"PreSale\": false, \n \"Release\": false \n } \n] \n```" provider: vtex method: GET path: "/api/catalog/pvt/collection/{collectionId}/subcollection" encoding: json input: { type: "object" properties: { Accept: { type: "string" } "Content-Type": { type: "string" } collectionId: { type: "integer" } } required: ["Accept", "Content-Type", "collectionId"] additionalProperties: false } output: { type: "array" items: { type: "object" properties: { CollectionId: { type: "integer" description: "Collection ID." } Id: { type: "integer" description: "Subcollection ID." } Name: { type: "string" description: "Subcollection Name." } PreSale: { type: "boolean" description: "Defines if the collection is on PreSale." } Release: { type: "boolean" description: "Defines if the collection is a new released one." } Type: { type: "string" description: "Either `“Exclusive”` (all the products contained in it will not be used) or `“Inclusive”` (all the products contained in it will be used)." } } } } }