Check which files already exist in a folder.
POST/api/v1/folders/check-existing-filesfolders:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Needs View Folders, View Folder Contents and View Document Metadata. The bulk uploader's duplicate check: of the items sent, the subset whose file already exists as a document in that same folder, matched by original file name (mode filename) or content hash (mode filehash, the SHA-1 hex byte pairs joined by '-', upper case). Gated on folder access, not on each document: a duplicate you cannot open still counts, and a folder you cannot access is dropped, never reported. Up to 1000 items; changes nothing.
| スコープ | folders:read |
| 非同期 | いいえ |
| MCP ツール | check_folder_existing_files |
| Portal の権限 | view_folders, view_folder_contents, view_document_metadata |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | FolderExistingFilesRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json FolderExistingFiles |
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 のコードです。各コードからそのページに移動できます。
スキーマ
FolderExistingFiles
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
existing | FolderFileCandidate の配列 | 必須 | The items of the request whose file already exists in its folder, in the order sent. |
FolderExistingFilesRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | FolderFileCandidateInput の配列 | 必須 | The files to look for, up to 1000. |
mode | string: filename, filehash | 必須 | filename matches the original file name; filehash the content hash. |
FolderFileCandidate
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
folder_id | string | 必須 | The folder to look in. |
value | string | 必須 | The original file name (mode filename) or the content hash (mode filehash). |
FolderFileCandidateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
folder_id | string | 必須 | The folder to look in. |
value | string | 必須 | The original file name (mode filename) or the content hash (mode filehash). |