feat: support deleting photo folders with content

This commit is contained in:
2026-04-08 17:08:55 +03:00
parent 4384b291e5
commit a2d133386c
9 changed files with 149 additions and 27 deletions

View File

@@ -5178,7 +5178,7 @@
"delete": {
"operationId": "photo-delete-folder",
"summary": "Delete a photo folder",
"description": "Photos in this folder are moved to the board root.",
"description": "When deleteContents is false (default), photos are moved to the board root. When true, the folder and all its photos (including files) are permanently deleted.",
"tags": [
"photo"
],
@@ -5211,6 +5211,15 @@
"format": "int64"
}
},
{
"name": "deleteContents",
"in": "query",
"description": "Whether to also delete photos inside the folder.",
"schema": {
"type": "boolean",
"default": false
}
},
{
"name": "OCS-APIRequest",
"in": "header",