This resource has a few variations that can be encountered when
using the API.The fields that are part of the full variant can be returned
by API endpoints that support the
fields parameter. For example,
by defining the fields request parameter as
id,type when requesting a file by ID, only those fields will
be returned in the API response.example:
12345The unique identifier that represent 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.example:
fileThe value will always be file.Value is always fileexample:
["editor"]A list of the types of roles that user can be invited at
when sharing this file.Details about the classification applied to this file.
example:
10The number of comments on this file.example:
2012-12-12T10:53:43-08:00The date and time at which this file was originally
created, which might be before it was uploaded to Box.example:
2012-12-12T10:53:43-08:00The date and time at which this file was last updated,
which might be before it was uploaded to Box.example:
2012-12-12T10:53:43-08:00The date and time when the file was created on Box.The user who created this file.
example:
Contract for Q1 renewalThe optional description of this file.
If the description exceeds 255 characters, the first 255 characters
are set as a file description and the rest of it is ignored.example:
2012-12-12T10:53:43-08:00The retention expiration timestamp for the given file.example:
1The HTTP etag of this file. This can be used within some API
endpoints in the If-Match and If-None-Match headers to only
perform changes on the file if (no) changes have happened.example:
2012-12-12T10:53:43-08:00When the file will automatically be deleted.Requesting this field creates an expiring Box Embed URL for an
embedded preview session in an
iframe.This URL will expire after 60 seconds and the session will
expire after 60 minutes.Not all file types are supported for these embed URLs. Box Embed
is not optimized for mobile browsers and should not be used in web
experiences designed for mobile devices. Many UI elements, like
the download and print options might not show in mobile
browsers.example:
pdfIndicates the (optional) file extension for this file. By default,
this is set to an empty string.The information about the current version of the file.
example:
trueSpecifies if this file has any other collaborators.example:
trueSpecifies if the file can be accessed
via the direct shared link or a shared link
to a parent folder.example:
trueThis field will return true if the file or any ancestor of the file
is associated with at least one app item. Note that this will return
true even if the context user does not have access to the app item(s)
associated with the file.example:
trueSpecifies if this file is owned by a user outside of the
authenticated enterprise.example:
trueIndicates if the file is a package. Packages are commonly used
by Mac Applications and can include iWork files.example:
activeDefines if this item has been deleted or not.activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted.
active,trashed,deletedThe lock held on this file. If there is no lock, this can either
be
null or have a timestamp in the past.An object containing the metadata instances that have been
attached to this file.Each metadata instance is uniquely identified by its
scope and
templateKey. There can only be one instance of any metadata
template attached to each file. Each metadata instance is nested
within an object with the templateKey as the key, which again
itself is nested in an object with the scope as the key.example:
2012-12-12T10:53:43-08:00The date and time when the file was last updated on Box.The user who last modified this file.
example:
Contract.pdfThe name of the file.The user who owns this file.
The folder that this file is located within.
This value may be
null for some folders such as
the root folder or the trash folder.The tree of folders that this file is contained in,
starting at the root.
Describes the permissions that the current user has
for this file.
example:
2012-12-12T10:53:43-08:00The time at which this file is expected to be purged
from the trash.A list of representations for a file that can be used to
display a placeholder of the file in your application. By default
this returns all representations and we recommend using the
x-rep-hints header to further customize the desired
representations.example:
3A numeric identifier that represents the most recent user event
that has been applied to this item.This can be used in combination with the GET /events-endpoint
to filter out user events that would have occurred before this
identifier was read.An example would be where a Box Drive-like application
would fetch an item via the API, and then listen to incoming
user events for changes to the item. The application would
ignore any user events where the sequence_id in the event
is smaller than or equal to the sequence_id in the originally
fetched resource.example:
85136C79CBF9FE36BB9D05D0639C70C265C18D37The SHA1 hash of the file. This can be used to compare the contents
of a file on Box with a local file.The shared link for this file. This value will be
null if no shared link has been created for this
file.example:
["can_preview"]A list of the types of roles that user can be invited at
when sharing this file.example:
629644The file size in bytes. Be careful parsing this integer as it can
get very large and cause an integer overflow.example:
["approved"]The tags for this item. These tags are shown in
the Box web app and mobile apps next to an item.To add or remove a tag, retrieve the item’s current tags,
modify them, and then update this field.There is a limit of 100 tags per item, and 10,000
unique tags per enterprise.example:
2012-12-12T10:53:43-08:00The time at which this file was put in the trash.example:
Ellis WigginsThe 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.example:
1The version number of this file.Details about the watermark applied to this file.
