Deletes an item of a Custom Entity type, identified by its denominator and item identifier. Returns 204 No Content when the item has been deleted.
Requires a valid API key in the X-API-KEY header.
204 No Content — Custom Entity item 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 — Custom Entity denominator or item with the given identifier does not exist.
- 500 Internal Server Error — Unexpected technical error.
Request:
DELETE /CustomEntities('Brand')/item(42) 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/CustomEntities('\''{customEntityDenominator}'\'')/item({itemId})' \
-H 'Accept-Language: string' \
-H 'X-API-KEY: string'