Skip to content

Delete Category

Request

Deletes the Category identified by its route identifier.

Authentication

Requires a valid API key in the X-API-KEY header.

Response

204 No Content — Category deleted.

Error Responses

  • 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.

Example

Request:

DELETE /Categories(123) HTTP/1.1
X-API-KEY: your-api-key-here

Response:

HTTP/1.1 204 No Content
Path
categoryIdinteger, (int32)required

Category resource identifier

Headers
X-API-KEYstring

Tenant's API key (required)

DELETE
/Categories({categoryId})
curl -i -X DELETE \
  'https://api2.saleslayer.com/catalog/Categories({categoryId})' \
  -H 'X-API-KEY: string'

Responses

No Content

Response
No content