List file versions
Get all versions of a file. The response contains a list of the versions for the file. Each version includes the file version metadata and the download URL. The download URL is valid for a limited time. The response is paginated and the number of items returned can be controlled using the limit query parameter.
-
status - To retrieve soft deleted file’s versions, set
statusattribute asdeleted. To retrieve active file’s versions, setstatusattribute asactive. Hard deleted file’s versions cannot be retrieved. -
complete - To get full file response set
completeparameter astrue. By default it is false and minimal response will be returned. -
pageSize - To control the number of items returned in the response, set
pageSizeattribute. By default, it is set to 100. -
nextPageToken - To get the next set of items, set
nextPageTokenattribute with the value from the previous response.
Prerequisites
Section titled “Prerequisites”- A file should be created. To know more about uploading a file refer here
Request
Section titled “Request”GET {baseUrl}/spaces/{spaceId}/files/{fileId}/versions-
HEADER:
- Authorization:
Bearer {tid token}
- Authorization:
Response
Section titled “Response”To know more about the List file versions refer here. For List file versions by path refer here.