Create Collection
#
Method#
/catalogs/collectionPOST
https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/catalogs/collection
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptUsing this method, you will be able to create a collection of products in your catalog.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
name | string | Name of the collection |
productIds | array string | IDs of the products that will be part of the collection |
#
Request Body#
Response#
200Attributes | Type | Description |
---|---|---|
collectionId | string | Collection ID |
Example
#
405In this case, ensure that you are sending the method specification correctly, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers, in most cases, it should be "application/json".