API Reference
//
Delete Variant
Deletes the Variant resource identified by its identifier.
Requires a valid API key in the X-API-KEY header.
204 No Content — Variant 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 — Variant with the given identifier does not exist.
- 500 Internal Server Error — Unexpected technical error.
Request:
DELETE /Variants(789) 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/Variants({variantId})' \
-H 'Accept-Language: string' \
-H 'X-API-KEY: string'