File Version

A standard representation of a file version

Base
Mini
Standard

This resource has a few variations that can be encountered when using the API.

The fields that are part of the standard variant are generally returned when the resource is requested via its own API endpoints. For example, when retrieving a file by ID, it will return these fields unless the fields parameter has been specified.

string
12345

The unique identifier that represent a file version.

string
file_version

Value is always "file_version"

string
134b65991ed521fcfe4724b7d814ab8ded5185dc

The SHA1 hash of this version of the file.

string / date-time
2012-12-12T10:53:43-08:00

When the file version object was created

string / date-time
2012-12-12T10:53:43-08:00

When the file version object was last updated

The user who last updated the file version

string
tigers.jpeg

The name of the file version

string / date-time
2012-12-12T10:53:43-08:00

When the file version object will be permanently deleted.

string / date-time
2012-12-12T10:53:43-08:00

When the file version was restored from the trash.

The user who restored the file version from the trash.

integer / int64
629644

Size of the file version in bytes

string / date-time
2012-12-12T10:53:43-08:00

When the file version object was trashed.

The user who trashed the file version

Full

Response Example

{
  "id": 12345,
  "type": "file_version",
  "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc",
  "name": "tigers.jpeg",
  "size": 629644,
  "created_at": "2012-12-12T10:53:43-08:00",
  "modified_at": "2012-12-12T10:53:43-08:00",
  "modified_by": {
    "id": 11446498,
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "trashed_at": "2012-12-12T10:53:43-08:00",
  "trashed_by": {
    "id": 11446498,
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "restored_at": "2012-12-12T10:53:43-08:00",
  "restored_by": {
    "id": 11446498,
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "purged_at": "2012-12-12T10:53:43-08:00"
}