u
This commit is contained in:
@@ -16,6 +16,13 @@ Patches article fields. At least one of `name`, `unitamount`, `unitSi` required.
|
||||
|
||||
## Body (JSON)
|
||||
|
||||
| Field | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `name` | no | string | |
|
||||
| `unitamount` | no | number | Must be finite and `> 0` |
|
||||
| `unitSi` | no | string | Existing company unit `si` |
|
||||
| `track_stock` | no | boolean | Whether to track inventory stock |
|
||||
|
||||
```json
|
||||
{
|
||||
"unitamount": 0.24,
|
||||
@@ -33,7 +40,32 @@ Updated article detail
|
||||
|
||||
```json
|
||||
{
|
||||
"article": {}
|
||||
"article": {
|
||||
"id": 1,
|
||||
"sku": "…",
|
||||
"name": "…",
|
||||
"slug": "…",
|
||||
"track_stock": true,
|
||||
"unitamount": 1,
|
||||
"weight": 1,
|
||||
"unit": {},
|
||||
"brand": {},
|
||||
"categoryIds": [
|
||||
1
|
||||
],
|
||||
"photos": [
|
||||
{}
|
||||
],
|
||||
"eans": [
|
||||
"…"
|
||||
],
|
||||
"prices": [
|
||||
{}
|
||||
],
|
||||
"suppliers": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user