action vtex_post_api_catalog_pvt_subcollection { label: "Create Subcollection" 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\nCreates a new Subcollection, which is a [Group](https://help.vtex.com/en/tutorial/adding-collections-cms--2YBy6P6X0NFRpkD2ZBxF6L#group-types) within a Collection. A Subcollection can be either “Exclusive” (all the products contained in it will not be used) or “Inclusive” (all the products contained in it will be used). \n## Request body example \n \n```json \n{ \n \"CollectionId\": 149, \n \"Name\": \"Test\", \n \"Type\": \"Exclusive\", \n \"PreSale\": true, \n \"Release\": false \n} \n``` \n## Response body example \n \n```json \n{ \n \"Id\": 13, \n \"CollectionId\": 149, \n \"Name\": \"Test\", \n \"Type\": \"Exclusive\", \n \"PreSale\": true, \n \"Release\": false \n} \n```" provider: vtex method: POST path: "/api/catalog/pvt/subcollection" encoding: json input: { type: "object" properties: { Accept: { type: "string" } CollectionId: { type: "integer" description: "SubCollection ID." } "Content-Type": { type: "string" } Name: { type: "string" description: "SubCollection Name." } PreSale: { type: "boolean" description: "Defines PreSale date." } Release: { type: "boolean" description: "Defines Release date." } 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)." } } required: ["Accept", "CollectionId", "Content-Type", "Name", "PreSale", "Release", "Type"] additionalProperties: false } output: { 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)." } } } }