メインコンテンツまでスキップ

Unlink a folder's subtree before deleting it.

POST/api/v1/folders/{folder_id}/prune-subtreefolders:delete
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Documents filed in the folder or its subfolders and also in a folder outside are unlinked from the subtree and stay (unlinked_document_ids). Documents filed only inside keep their filing and are returned (exclusive_document_ids) to delete with batch_delete_documents. folder_ids lists the folder and every folder under it, deepest first, to delete with delete_folder once empty. Needs Delete Folders and sight of every folder in the subtree (409 otherwise). Documents you cannot read are counted, not named.

スコープfolders:delete
非同期いいえ
MCP ツールprune_folder_subtree
Portal の権限delete_folders

パラメーター​

名前場所型必須説明
folder_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

応答​

ステータス説明本文
200Success.application/json FolderPruneResult
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

FolderPruneResult​

フィールド型必須説明
exclusive_document_idsstring の配列必須Documents readable by you that are filed only inside the subtree, still filed there: delete them, then the folders.
folder_idsstring の配列必須The folder and every folder under it, deepest first.
hidden_documentsinteger必須Documents of the subtree you cannot read, filed only inside it or unlinked: counted, not named. ≥ -2147483648; ≤ 2147483647
removed_filingsinteger必須How many filings (document in folder) were removed, documents you cannot read included. ≥ -2147483648; ≤ 2147483647
unlinked_document_idsstring の配列必須Documents readable by you that are also filed outside the subtree and were unlinked from it.