Check which documents you may delete.
POST/api/v1/documents/check-deletedocuments:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The Delete dialog's check, one answer per document sent. Needs Bulk Delete Documents: can_delete is true when you can read the document and hold Delete Other Users Documents, or Delete Self Owned Documents on a document you own. A document that does not exist or that you cannot read answers false, as the Portal's does. is_blocked_by_sub_workflow is true when a group sub-workflow is still running on the document, which refuses the delete until its workflows are cancelled (cancel_document_workflows). Changes nothing.
| スコープ | documents:read |
| 非同期 | いいえ |
| MCP ツール | check_document_delete |
| Portal の権限 | bulk_delete_documents |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | DocumentDeleteCheckRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json DocumentDeleteCheckResult |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
DocumentDeleteCheck
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
can_delete | boolean | 必須 | Whether you may delete the document: false when it is not readable by you, as well as when you hold no delete permission for it. |
document_id | string | 必須 | The ID as sent. |
is_blocked_by_sub_workflow | boolean | 必須 | Whether a group sub-workflow is still running on the document; the delete is refused until it is cancelled. |
DocumentDeleteCheckRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_ids | string の配列 | 必須 | The documents to check, up to 1000. |
DocumentDeleteCheckResult
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
documents | DocumentDeleteCheck の配列 | 必須 | One entry per document sent, in the order sent. |