List Document Revisions
Lists a document’s revisions, newest first. Takes the document ID from List Documents, not the document file ID.
Each revision names the document file behind it. For how document IDs and document file IDs relate, see Browse Documents and Chunks.
Revisions whose document file the key cannot read are left out before the page is filled. Follow next_cursor even when a page contains fewer than limit revisions.
1 min read
get/knowledge-fs/spaces/{knowledge_base_id}/documents/{document_id}/revisions
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/documents/{document_id}/revisions
Authorization
Path parameters
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.The document ID, from List Documents or from the address bar of the open document (
/datasets/new/<knowledge base ID>/documents/<document ID>).Query parameters
Responses
application/json
One page of revisions.