Deletes the Category identified by its route identifier.
Requires a valid API key in the X-API-KEY header.
204 No Content — Category deleted.
- 401 Unauthorized — Missing or invalid API key. Returned by the API gateway as
{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }. - 403 Forbidden — The API key does not have write permissions for this operation.
- 404 Not Found — Category with the given identifier does not exist.
- 500 Internal Server Error — Unexpected technical error.
Request:
DELETE /Categories(123) HTTP/1.1
X-API-KEY: your-api-key-hereResponse:
HTTP/1.1 204 No ContentDELETE
curl -i -X DELETE \
'https://api2.saleslayer.com/catalog/Categories({categoryId})' \
-H 'X-API-KEY: string'