This commit is contained in:
seb
2026-10-08 16:11:47 +02:00
parent c2d3cdb088
commit 8111c3f377
10 changed files with 190 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
Delete category
Deletes a category the user is authorized for (not the company root).
Deletes a category the user is authorized for (not the company root). When recursive=true, recursively deletes all child categories, unassigns POS terminals, and deletes articles that only exist in the deleted subtree (including their children).
## Path parameters
@@ -12,9 +12,15 @@ Deletes a category the user is authorized for (not the company root).
|-------|----------|------|-------------|
| `id` | yes | integer | Category id |
## Query parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `recursive` | no | boolean | When true, recursively deletes the category subtree and articles that only exist within it. |
## Signals
On success, emits SSE signal: `category` (see [`GET /events`](../events.md)).
On success, emits SSE signals: `category`, `articles` (see [`GET /events`](../events.md)).
## Response `204`