Skip to main content

Check which files already exist in a folder.

POST/api/v1/folders/check-existing-filesfolders:read

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.

Scopefolders:read
AsynchronousNo
MCP toolcheck_folder_existing_files
Portal permissionsview_folders, view_folder_contents, view_document_metadata

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonFolderExistingFilesRequestInput

Responses​

StatusDescriptionBody
200Success.application/json FolderExistingFiles
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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FolderExistingFiles​

FieldTypeRequiredDescription
existingarray of FolderFileCandidateRequiredThe items of the request whose file already exists in its folder, in the order sent.

FolderExistingFilesRequestInput​

FieldTypeRequiredDescription
itemsarray of FolderFileCandidateInputRequiredThe files to look for, up to 1000.
modestring: filename, filehashRequiredfilename matches the original file name; filehash the content hash.

FolderFileCandidate​

FieldTypeRequiredDescription
folder_idstringRequiredThe folder to look in.
valuestringRequiredThe original file name (mode filename) or the content hash (mode filehash).

FolderFileCandidateInput​

FieldTypeRequiredDescription
folder_idstringRequiredThe folder to look in.
valuestringRequiredThe original file name (mode filename) or the content hash (mode filehash).