Retrieving Revisions of a File
You can use the
retrieveRevisions call to get the previous revisions of a file.
Sample URL
https://hostname:port/context/rest/v2/documents/retrieveRevisions/{id}
Parameters
Parameter
|
Description
|
id
|
ID of the document.
It should be on the URL.
|
lastVersionNum
|
Optional.
This parameter defines the call to return revisions older than this one.
The default value of
0 means returning all revisions.
|
Response
This call returns an array of document objects. Each document object has the following fields:
Parameter
|
Description
|
versionNum
|
A sequence integer.
|
userName
|
The user who created or updated this version.
|
timeStamp
|
The time when the revision is created.
|
fileSize
|
The size of the file.
|
comment
|
Comments.
|
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.