This commit is contained in:
seb
2026-09-30 19:29:13 +02:00
parent d6fe6ff1d2
commit e358eccca9
80 changed files with 1185 additions and 225 deletions

View File

@@ -2,15 +2,21 @@
Protected. Requires a valid session cookie (`credentials: 'include'`).
Create article
Create article in category
Creates an article under an authorized category (`parentId`).
## Body (JSON)
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `categoryId` | yes | integer | Category ID under which to create the article |
| `name` | yes | string | |
| `track_stock` | no | boolean | Whether to track inventory stock (defaults to true) |
```json
{
"parentId": 10,
"categoryId": 10,
"name": "New article"
}
```
@@ -27,7 +33,7 @@ Created
{
"article": {
"id": 1,
"parentId": 1,
"categoryId": 1,
"name": "…",
"sku": "…",
"track_stock": true