Overview /
Stock & supply /
Delete a category
Delete a category
delete
https://api.flactrum.com/v1/stock-item-categories/{category}
The category must be empty.
| Required scope | stock_items.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| category * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/stock-item-categories/01m43mzhy70xgv3t4cjbavkd3r' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/stock-item-categories/01m43mzj6f000revtay833thmg' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This category still holds 1 stock item(s). Move them first.",
"details": {
"stock_item_count": 1
}
}
}