Promote a specific version of a file.
If previous versions exist, this method can be used to promote one of the older versions to the top of the version history.
This creates a new copy of the old version and puts it at the
top of the versions history. The file will have the exact same contents
as the older version, with the same hash digest, etag, and
name as the original.
Other properties such as comments do not get updated to their former values.
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.
A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.
Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.
Returns a newly created 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"