Update Document Status in Batch
Enables, disables, archives, or unarchives multiple documents in one request.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Path Parameters
Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.
enable activates documents for retrieval, disable deactivates them, archive moves them to the archive, un_archive restores them from the archive.
enable, disable, archive, un_archive Body
Document IDs to update. Get them from List Documents.
Response
Documents updated successfully.
Operation result.