Count Revisions
-
You can get the number of revisions a document has by using the session
advanced
methodget_count_for
. -
In this page:
Get revisions count
# Get the number of revisions for document 'companies/1-A'
revisions_count = session.advanced.revisions.get_count_for("companies/1-A")
Syntax
def get_count_for(self, id_: str) -> int: ...
Parameter | Type | Description |
---|---|---|
id_ | str |
The ID of the document that revisions are counted for |
Return value | |
---|---|
int |
The number of revisions for the specified document |