This commit is contained in:
seb
2026-10-07 22:39:27 +02:00
parent 1a236b568a
commit 446f465a48
2 changed files with 8 additions and 7 deletions

View File

@@ -5,8 +5,8 @@ Protected. Requires a valid session cookie (`credentials: 'include'`).
Replace article categories by SKU
Replace-all the article's category list. Each category must belong to
the article's company; ids must be unique. Empty array removes the
article from all categories. Returns the same shape as GET by SKU.
the article's company; ids must be unique. The article must belong to
at least one category (empty array is rejected). Returns the same shape as GET by SKU.
## Path parameters
@@ -115,7 +115,7 @@ Updated article detail
| Status | Description |
|--------|-------------|
| 400 | Invalid categoryIds — `{"error":"…"}` |
| 400 | Invalid categoryIds or empty array — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 403 | Not authorized — `{"error":"…"}` |
| 404 | Article not found — `{"error":"…"}` |