u
This commit is contained in:
35
docs/api/routes/article/_sku/children/_childSku.md
Normal file
35
docs/api/routes/article/_sku/children/_childSku.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# `DELETE /article/{sku}/children/{childSku}`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
Remove a child article from a father article
|
||||
|
||||
Unlinks the child from the father (or deletes if deleteArticle query/body is true).
|
||||
|
||||
## Path parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `sku` | yes | string | Father article SKU |
|
||||
| `childSku` | yes | string | Child article SKU |
|
||||
|
||||
## Query parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `deleteArticle` | no | boolean | If true, permanently deletes the child article instead of just unlinking |
|
||||
|
||||
## Response `200`
|
||||
|
||||
Child removed
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"deleted": true
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user