post https://{accountName}.{environment}.com.br/api/catalog/pvt/collection
Creates a new Collection
Request object has the following properties:
Attribute | Type | Description |
---|---|---|
Name | string | Collection Name |
Searchable | boolean | Whether the Collection is searchale or not |
Highlight | boolean | If the Collection is highlighted or not |
DateFrom | string | Initial value date for the Collection |
DateTo | string | Final value date for the Collection |
Request body example:
{
"Name": "Test",
"Searchable": false,
"Highlight": false,
"DateFrom": "2017-09-27T10:47:00",
"DateTo": "2027-09-27T10:47:00"
}
Response body has the following properties:
Attribute | Type | Description |
---|---|---|
Id | integer | Collection ID |
Name | string | Collection Name |
Searchable | boolean | Whether the Collection is searchale or not |
Highlight | boolean | If the Collection is highlighted or not |
DateFrom | string | Initial value date for the Collection |
DateTo | string | Final value date for the Collection |
TotalProducts | integer | Amount of products contained on the Collection |
Response body example:
{
"Id": 150,
"Name": "Test",
"Description": null,
"Searchable": false,
"Highlight": false,
"DateFrom": "2017-09-27T10:47:00",
"DateTo": "2027-09-27T10:47:00",
"TotalProducts": 0
}