982 B
982 B
DELETE /article/{sku}/supplier/{id}
Protected. Requires a valid session cookie (credentials: 'include').
Remove supplier assignment from article
Removes a supplier assignment from the article and cleans up its associated purchase price.
Path parameters
| Param | Required | Type | Description |
|---|---|---|---|
sku |
yes | string | Article SKU |
id |
yes | integer | articlesupplier assignment ID |
Signals
On success, emits SSE signal: article-<sku> (see GET /events).
Response 204
Deleted
No content
Errors
| Status | Description |
|---|---|
| 400 | Invalid id, invalid sku, or no company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized — {"error":"…"} |
| 404 | Supplier assignment or article not found — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.