Files
dashback/docs/api/routes/article/_sku/children.get.md
2026-10-04 21:22:00 +02:00

43 lines
757 B
Markdown

# `GET /article/{sku}/children`
Protected. Requires a valid session cookie (`credentials: 'include'`).
List child articles of a parent article
Returns variants/children linked to this parent article.
## Path parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `sku` | yes | string | Parent article SKU |
## Response `200`
List of children
```json
{
"children": [
{
"id": 1,
"sku": "…",
"name": "…",
"parentsort": 1,
"attributeValueId": 1,
"attributeValue": "…"
}
]
}
```
## Errors
| Status | Description |
|--------|-------------|
| 404 | Article not found |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._