From 52f26ec36f62fd95fa7e6e60ef68b1d98bf332f5 Mon Sep 17 00:00:00 2001 From: Yuli Stremovsky Date: Tue, 11 Aug 2026 21:08:02 +0300 Subject: [PATCH] Document remaining File API methods, fix docs link Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 541cecc..af30db9 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,18 @@ $files = $api->listUserFiles('email', 'user@example.com', 'identity-docs'); // Fetch one back by name or uuid $file = $api->getFile('email', 'user@example.com', ['filename' => 'passport.pdf']); + +// Replace the complete tag set on a file +$api->replaceFileTags('email', 'user@example.com', $file['fileuuid'], ['archived']); + +$api->deleteFile('email', 'user@example.com', $file['fileuuid']); +``` + +Files can also be listed by tag across every user in the tenant, which needs a bulk-unlock uuid: + +```php +$unlock = $api->bulkListUnlock(); +$tagged = $api->bulkListFilesByTag($unlock['unlockuuid'], 'identity-docs', 0, 100); ``` ### TLS certificate verification @@ -107,7 +119,7 @@ The library provides methods for all DatabunkerPro API endpoints: - Policy Management - Session Management -For detailed API documentation, please refer to the [DatabunkerPro API Documentation](https://databunker.org/databunker-pro-docs/introduction/). +For detailed API documentation, please refer to the [DatabunkerPro API Documentation](https://docs.databunker.org/pro/get-started/overview). ## Testing