Restores a specific version of a file after it was deleted. Don’t use this endpoint to restore Box Notes, as it works with file formats such as PDF, DOC, PPTX or similar.
The access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/files/123
the file_id is 123.
The ID of the file version.
The file version to be restored.
Set this to null to clear
the date and restore the file.
null
Returns a restored file version object.
A full representation of a file version, as can be returned from any file version API endpoints by default.
The unique identifier that represent a file version.
"12345"
The value will always be file_version.
file_version "file_version"
The SHA1 hash of this version of the file.
"134b65991ed521fcfe4724b7d814ab8ded5185dc"
The name of the file version.
"tigers.jpeg"
Size of the file version in bytes.
629644
When the file version object was created.
"2012-12-12T10:53:43-08:00"
When the file version object was last updated.
"2012-12-12T10:53:43-08:00"
The user who last updated the file version.
When the file version object was trashed.
"2012-12-12T10:53:43-08:00"
The user who trashed the file version.
When the file version was restored from the trash.
"2012-12-12T10:53:43-08:00"
The user who restored the file version from the trash.
When the file version object will be permanently deleted.
"2012-12-12T10:53:43-08:00"
The display name of the user that uploaded the file. In most cases this is the name of the user logged in at the time of the upload.
If the file was uploaded using a File Request form that requires the user to
provide an email address, this field is populated with that email address. If
an email address was not required in the File Request form, this field is set
to return a value of File Request.
In all other anonymous cases where no email was provided this field
will default to a value of Someone.
"Ellis Wiggins"
The version number of this file version.
"1"