39 lines
982 B
Markdown
39 lines
982 B
Markdown
# `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`](../events.md)).
|
|
|
|
## 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`._
|