Returns revisions for files based on a file path or a file id. The file path or file id is
identified from the latest file entry at the given file path or id. This end point allows
your app to query either by file path or file id by setting the mode parameter appropriately.
In the ListRevisionsMode.path (default) mode, all revisions at the same file path as the
latest file entry are returned. If revisions with the same file id are desired, then mode
must be set to ListRevisionsMode.id. The ListRevisionsMode.id mode is useful to retrieve
revisions for a given file across moves or renames.
**Required scope:** `files.metadata.read`
**Endpoint format:** [RPC](https://docs.dropboxapi.com/dropbox-api/docs/technical-reference/request-response-formats#rpc-endpoints)
**Authentication:** [User](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#user-authentication), [Dropbox-API-Select-Admin (Whole Team)](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#admin-authentication-via-dropbox-api-select-admin)
Request
This endpoint expects an object.
pathstringRequiredformat: "\/(.|[\r\n])*|id:.*|(ns:[0-9]+(/(.|[\r\n])*)?)"
The path to the file you want to see the revisions of.
before_revstring or nullOptionalformat: "[0-9a-f]+">=9 characters
If set, ListRevisions will only return revisions prior to before_rev. Can be set using the last revision
from a previous call to list_revisions to fetch the next page of revisions. Only supported in path mode.
include_restorable_infobooleanOptionalDefaults to false
If true, each returned revision will include whether that revision can be restored.
limituint64Optional1-100Defaults to 10
The maximum number of revision entries returned.
modeobject or nullOptional
Determines the behavior of the API in listing the revisions for a given file path or id.
Response
Successful response
entrieslist of objects
The revisions for the file. Only revisions that are not deleted will show up here.
has_moreboolean
If true, then there are more entries available. Call list_revisions again with before_rev equal to the revision
of the last returned entry to retrieve the rest.
is_deletedboolean
If the file identified by the latest revision in the response is either deleted or moved. If before_rev is set,
this refers to the latest revision of the file older than before_rev.
server_deleteddatetime or nullOptional
The time of deletion if the file was deleted.