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

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-Versionheaderstring (date)任意

リクエスト本文​

Content-Type型
application/jsonDocumentDeleteCheckRequestInput

応答​

ステータス説明本文
200Success.application/json DocumentDeleteCheckResult
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

DocumentDeleteCheck​

フィールド型必須説明
can_deleteboolean必須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_idstring必須The ID as sent.
is_blocked_by_sub_workflowboolean必須Whether a group sub-workflow is still running on the document; the delete is refused until it is cancelled.

DocumentDeleteCheckRequestInput​

フィールド型必須説明
document_idsstring の配列必須The documents to check, up to 1000.

DocumentDeleteCheckResult​

フィールド型必須説明
documentsDocumentDeleteCheck の配列必須One entry per document sent, in the order sent.