Skip to main content

Delete Collection

Method#

/catalogs/collection/{{collection-id}}#

DELETE https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/catalogs/collection/{{collection-id}}

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

Using this method, you will be able to delete a collection of products from your catalog.


Response#

200#

AttributesTypeDescription
successbooleantrue if it was successful, false in case of failure

Example

{
"success": true
}

405#

In 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.

415#

If 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".


Code#