action vtex_post_api_catalog_pvt_collection { label: "Create Collection" 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 Collection. \n## Request body example \n \n```json \n{ \n \"Name\": \"Winter\", \n \"Searchable\": false, \n \"Highlight\": false, \n \"DateFrom\": \"2021-09-27T10:47:00\", \n \"DateTo\": \"2027-09-27T10:47:00\" \n} \n``` \n \n## Response body example \n \n```json \n{ \n \"Id\": 159, \n \"Name\": \"Winter\", \n \"Description\": null, \n \"Searchable\": false, \n \"Highlight\": false, \n \"DateFrom\": \"2021-09-27T10:47:00\", \n \"DateTo\": \"2027-09-27T10:47:00\", \n \"TotalProducts\": 0, \n \"Type\": \"Manual\" \n} \n```" provider: vtex method: POST path: "/api/catalog/pvt/collection" encoding: json input: { type: "object" properties: { Accept: { type: "string" } "Content-Type": { type: "string" } DateFrom: { type: "string" description: "Initial value date for the Collection." } DateTo: { type: "string" description: "Final value date for the Collection." } Highlight: { type: "boolean" description: "Defines if the Collection is highlighted or not." } Name: { type: "string" description: "Collection Name." } Searchable: { type: "boolean" description: "Defines if the Collection is searchable or not." } } required: ["Accept", "Content-Type", "DateFrom", "DateTo", "Highlight", "Name", "Searchable"] additionalProperties: false } output: { type: "object" properties: { DateFrom: { type: "string" description: "Initial value date for the Collection." } DateTo: { type: "string" description: "Final value date for the Collection." } Description: { type: "string" description: "Collection description." } Highlight: { type: "boolean" description: "Defines if the Collection is highlighted or not." } Id: { type: "integer" description: "Collection ID." } Name: { type: "string" description: "Collection Name." } Searchable: { type: "boolean" description: "Defines if the Collection is searchable or not." } TotalProducts: { type: "integer" description: "Total quantity of products in the collection." } Type: { type: "string" description: "Type of collection." } } } }