Delete category

Delete a category in an Ecwid store referring to its ID.

📘

Categories originated outside of Ecwid can not be deleted, e.g. if a category that has the field "origin": "LIGHTSPEED"

Access scopes

Requires the following access scope: update_catalog

Response

A JSON object with the following fields:

FieldTypeDescription
deleteCountnumberThe number of deleted categories (1 or 0 depending on whether the request was successful)

Errors

Error response example

HTTP/1.1 400 Bad request
Content-Type application/json; charset=utf-8

In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description

HTTP codes

HTTP StatusMeaning
400Malformed request parameters
415Unsupported content-type: expected application/json or text/json
449Store catalog cannot be modified at the moment because import is in progress. Retry later.
500Server error
Language
Click Try It! to start a request and see the response here!