Documents
Update Document Status in Batch
Enables, disables, archives, or unarchives multiple documents in one request.
PATCH
Update Document Status in Batch
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.
Body
application/json
Document IDs to update. Get them from List Documents.