Skip to main content

Catalog Configuration

Method#

/catalogs/config#

POST https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/catalogs/config

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

Using this method, you will be able to edit the settings of your catalog.


Attributes#

Required#

AttributesTypeDescription
cartEnabledstringEnable or disable the cart

Request Body#

{
"cartEnabled": true
}

Response#

200#

AttributesTypeDescription
successbooleantrue if 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#