delete https://app.ecwid.com/api/v3//categories/
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:
Field | Type | Description |
---|---|---|
deleteCount | number | The 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 Status | Meaning |
---|---|
400 | Malformed request parameters |
415 | Unsupported content-type: expected application/json or text/json |
449 | Store catalog cannot be modified at the moment because import is in progress. Retry later. |
500 | Server error |