curl -i -X POST "https://upload.box.com/2.0/files/upload_sessions/F971964745A5CD0C001BBE4E58196BFD/commit" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "digest: sha=fpRyg5eVQletdZqEKaFlqwBXJzM=" \
-H "content-type: application/json" \
-d '{
"parts": [
{
"part_id": "BFDF5379",
"offset": 0,
"size": 8388608,
"sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
},
{
"part_id": "E8A3ED8E",
"offset": 8388608,
"size": 1611392,
"sha1": "234b65934ed521fcfe3424b7d814ab8ded5185dc"
}
],
"attributes": {
"content_modified_at": "2017-04-08T00:58:08Z"
}
}'{
"total_count": 1,
"entries": [
{
"id": "12345",
"type": "file",
"etag": "1",
"sequence_id": "3",
"name": "Contract.pdf",
"sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
"file_version": {
"id": "12345",
"type": "file_version",
"sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
},
"description": "Contract for Q1 renewal",
"size": 629644,
"path_collection": {
"total_count": 1,
"entries": [
{
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
}
]
},
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00",
"trashed_at": "2012-12-12T10:53:43-08:00",
"purged_at": "2012-12-12T10:53:43-08:00",
"content_created_at": "2012-12-12T10:53:43-08:00",
"content_modified_at": "2012-12-12T10:53:43-08:00",
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"modified_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"owned_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"shared_link": {
"url": "https://www.box.com/s/vspke7y05sb214wjokpk",
"effective_access": "company",
"effective_permission": "can_download",
"is_password_enabled": true,
"download_count": 3,
"preview_count": 3,
"download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
"vanity_url": "https://acme.app.box.com/v/my_url/",
"vanity_name": "my_url",
"access": "open",
"unshared_at": "2018-04-13T13:53:23-07:00",
"permissions": {
"can_download": true,
"can_preview": true,
"can_edit": false
}
},
"parent": {
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
},
"item_status": "active",
"version_number": "1",
"comment_count": 10,
"permissions": {
"can_delete": true,
"can_download": true,
"can_invite_collaborator": true,
"can_rename": true,
"can_set_share_access": true,
"can_share": true,
"can_annotate": true,
"can_comment": true,
"can_preview": true,
"can_upload": true,
"can_view_annotations_all": true,
"can_view_annotations_self": true
},
"tags": [
"approved"
],
"lock": {
"id": "11446498",
"type": "lock",
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"created_at": "2012-12-12T10:53:43-08:00",
"expired_at": "2012-12-12T10:53:43-08:00",
"is_download_prevented": true,
"app_type": "office_wopiplus"
},
"extension": "pdf",
"is_package": true,
"expiring_embed_link": {
"access_token": "c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQ",
"expires_in": 3600,
"token_type": "bearer",
"restricted_to": [
{
"scope": "item_download",
"object": {
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
}
}
],
"url": "https://cloud.app.box.com/preview/expiring_embed/..."
},
"watermark_info": {
"is_watermarked": true
},
"is_accessible_via_shared_link": true,
"allowed_invitee_roles": [
"editor"
],
"is_externally_owned": true,
"has_collaborations": true,
"metadata": {
"enterprise_27335": {
"marketingCollateral": {
"$canEdit": true,
"$id": "01234500-12f1-1234-aa12-b1d234cb567e",
"$parent": "folder_59449484661",
"$scope": "enterprise_27335",
"$template": "marketingCollateral",
"$type": "properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0",
"$typeVersion": 2,
"$version": 1
}
}
},
"expires_at": "2012-12-12T10:53:43-08:00",
"representations": {
"entries": [
{
"content": {
"url_template": "https://dl.boxcloud.com/api/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048/content/{+asset_path}?watermark_content=4567"
},
"info": {
"url": "https://api.box.com/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048"
},
"properties": {
"dimensions": "2048x2048",
"paged": "true",
"thumb": "true"
},
"representation": "png",
"status": {
"state": "success"
}
}
]
},
"classification": {
"name": "Top Secret",
"definition": "Content that should not be shared outside the company.",
"color": "#FF0000"
},
"uploader_display_name": "Ellis Wiggins",
"disposition_at": "2012-12-12T10:53:43-08:00",
"shared_link_permission_options": [
"can_preview"
],
"is_associated_with_app_item": true
}
]
}Close an upload session and create a file from the uploaded chunks.
The actual endpoint URL is returned by the Create upload session
and Get upload session endpoints.
curl -i -X POST "https://upload.box.com/2.0/files/upload_sessions/F971964745A5CD0C001BBE4E58196BFD/commit" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "digest: sha=fpRyg5eVQletdZqEKaFlqwBXJzM=" \
-H "content-type: application/json" \
-d '{
"parts": [
{
"part_id": "BFDF5379",
"offset": 0,
"size": 8388608,
"sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
},
{
"part_id": "E8A3ED8E",
"offset": 8388608,
"size": 1611392,
"sha1": "234b65934ed521fcfe3424b7d814ab8ded5185dc"
}
],
"attributes": {
"content_modified_at": "2017-04-08T00:58:08Z"
}
}'{
"total_count": 1,
"entries": [
{
"id": "12345",
"type": "file",
"etag": "1",
"sequence_id": "3",
"name": "Contract.pdf",
"sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
"file_version": {
"id": "12345",
"type": "file_version",
"sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
},
"description": "Contract for Q1 renewal",
"size": 629644,
"path_collection": {
"total_count": 1,
"entries": [
{
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
}
]
},
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00",
"trashed_at": "2012-12-12T10:53:43-08:00",
"purged_at": "2012-12-12T10:53:43-08:00",
"content_created_at": "2012-12-12T10:53:43-08:00",
"content_modified_at": "2012-12-12T10:53:43-08:00",
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"modified_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"owned_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"shared_link": {
"url": "https://www.box.com/s/vspke7y05sb214wjokpk",
"effective_access": "company",
"effective_permission": "can_download",
"is_password_enabled": true,
"download_count": 3,
"preview_count": 3,
"download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
"vanity_url": "https://acme.app.box.com/v/my_url/",
"vanity_name": "my_url",
"access": "open",
"unshared_at": "2018-04-13T13:53:23-07:00",
"permissions": {
"can_download": true,
"can_preview": true,
"can_edit": false
}
},
"parent": {
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
},
"item_status": "active",
"version_number": "1",
"comment_count": 10,
"permissions": {
"can_delete": true,
"can_download": true,
"can_invite_collaborator": true,
"can_rename": true,
"can_set_share_access": true,
"can_share": true,
"can_annotate": true,
"can_comment": true,
"can_preview": true,
"can_upload": true,
"can_view_annotations_all": true,
"can_view_annotations_self": true
},
"tags": [
"approved"
],
"lock": {
"id": "11446498",
"type": "lock",
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"created_at": "2012-12-12T10:53:43-08:00",
"expired_at": "2012-12-12T10:53:43-08:00",
"is_download_prevented": true,
"app_type": "office_wopiplus"
},
"extension": "pdf",
"is_package": true,
"expiring_embed_link": {
"access_token": "c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQ",
"expires_in": 3600,
"token_type": "bearer",
"restricted_to": [
{
"scope": "item_download",
"object": {
"id": "12345",
"type": "folder",
"etag": "1",
"sequence_id": "3",
"name": "Contracts"
}
}
],
"url": "https://cloud.app.box.com/preview/expiring_embed/..."
},
"watermark_info": {
"is_watermarked": true
},
"is_accessible_via_shared_link": true,
"allowed_invitee_roles": [
"editor"
],
"is_externally_owned": true,
"has_collaborations": true,
"metadata": {
"enterprise_27335": {
"marketingCollateral": {
"$canEdit": true,
"$id": "01234500-12f1-1234-aa12-b1d234cb567e",
"$parent": "folder_59449484661",
"$scope": "enterprise_27335",
"$template": "marketingCollateral",
"$type": "properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0",
"$typeVersion": 2,
"$version": 1
}
}
},
"expires_at": "2012-12-12T10:53:43-08:00",
"representations": {
"entries": [
{
"content": {
"url_template": "https://dl.boxcloud.com/api/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048/content/{+asset_path}?watermark_content=4567"
},
"info": {
"url": "https://api.box.com/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048"
},
"properties": {
"dimensions": "2048x2048",
"paged": "true",
"thumb": "true"
},
"representation": "png",
"status": {
"state": "success"
}
}
]
},
"classification": {
"name": "Top Secret",
"definition": "Content that should not be shared outside the company.",
"color": "#FF0000"
},
"uploader_display_name": "Ellis Wiggins",
"disposition_at": "2012-12-12T10:53:43-08:00",
"shared_link_permission_options": [
"can_preview"
],
"is_associated_with_app_item": true
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Ensures this item hasn't recently changed before making changes.
Pass in the item's last observed etag value
into this header and the endpoint will fail
with a 412 Precondition Failed if it
has changed since.
Ensures an item is only returned if it has changed.
Pass in the item's last observed etag value
into this header and the endpoint will fail
with a 304 Not Modified if the item has not
changed since.
The ID of the upload session.
The list details for the uploaded parts.
Show child attributes
The unique ID of the chunk.
"6F2D3486"
The offset of the chunk within the file in bytes. The lower bound of the position of the chunk within the file.
16777216
The size of the chunk in bytes.
3222784
The SHA1 hash of the chunk.
"134b65991ed521fcfe4724b7d814ab8ded5185dc"
Returns the file object in a list.
A list of files.
The number of files.
1
A list of files.
Show child attributes
The 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.
"12345"
The value will always be file.
file "file"
The 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.
"1"
A 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.
"3"
The name of the file.
"Contract.pdf"
The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a local file.
"85136C79CBF9FE36BB9D05D0639C70C265C18D37"
The information about the current version of the file.
Show child attributes
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 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.
255"Contract for Q1 renewal"
The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow.
629644
The tree of folders that this file is contained in, starting at the root.
Show child attributes
The number of folders in this list.
1
The parent folders for this item.
Show child attributes
The unique identifier that represent a folder.
The ID for any folder can be determined
by visiting a folder in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/folders/123
the folder_id is 123.
"12345"
The value will always be folder.
folder "folder"
The HTTP etag of this folder. This can be used within some API
endpoints in the If-Match and If-None-Match headers to only
perform changes on the folder if (no) changes have happened.
"1"
A 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.
"3"
The name of the folder.
"Contracts"
The date and time when the file was created on Box.
"2012-12-12T10:53:43-08:00"
The date and time when the file was last updated on Box.
"2012-12-12T10:53:43-08:00"
The time at which this file was put in the trash.
"2012-12-12T10:53:43-08:00"
The time at which this file is expected to be purged from the trash.
"2012-12-12T10:53:43-08:00"
The date and time at which this file was originally created, which might be before it was uploaded to Box.
"2012-12-12T10:53:43-08:00"
The date and time at which this file was last updated, which might be before it was uploaded to Box.
"2012-12-12T10:53:43-08:00"
The user who created this file.
Show child attributes
The unique identifier for this user.
"11446498"
The value will always be user.
user "user"
The display name of this user.
50"Aaron Levie"
The primary email address of this user.
"ceo@example.com"
The user who last modified this file.
Show child attributes
The unique identifier for this user.
"11446498"
The value will always be user.
user "user"
The display name of this user.
50"Aaron Levie"
The primary email address of this user.
"ceo@example.com"
The user who owns this file.
Show child attributes
The unique identifier for this user.
"11446498"
The value will always be user.
user "user"
The display name of this user.
50"Aaron Levie"
The primary email address of this user.
"ceo@example.com"
The shared link for this file. This value will be
null if no shared link has been created for this
file.
Show child attributes
The URL that can be used to access the item on Box.
This URL will display the item in Box's preview UI where the file can be downloaded if allowed.
This URL will continue to work even when a custom vanity_url
has been set for this shared link.
"https://www.box.com/s/vspke7y05sb214wjokpk"
The effective access level for the shared link. This can be a more
restrictive access level than the value in the access field when the
enterprise settings restrict the allowed access levels.
open, company, collaborators "company"
The effective permissions for this shared link. These result in the more restrictive combination of the share link permissions and the item permissions set by the administrator, the owner, and any ancestor item such as a folder.
can_edit, can_download, can_preview, no_access "can_download"
Defines if the shared link requires a password to access the item.
true
The number of times this item has been downloaded.
3
The number of times this item has been previewed.
3
A URL that can be used to download the file. This URL can be used in a browser to download the file. This URL includes the file extension so that the file will be saved with the right file type.
This property will be null for folders.
"https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg"
The "Custom URL" that can also be used to preview the item on Box. Custom URLs can only be created or modified in the Box Web application.
"https://acme.app.box.com/v/my_url/"
The custom name of a shared link, as used in the vanity_url field.
"my_url"
The access level for this shared link.
open - provides access to this item to anyone with this linkcompany - only provides access to this item to people the same companycollaborators - only provides access to this item to people who are
collaborators on this itemIf this field is omitted when creating the shared link, the access level will be set to the default access level specified by the enterprise admin.
open, company, collaborators "open"
The date and time when this link will be unshared. This field can only be set by users with paid accounts.
"2018-04-13T13:53:23-07:00"
Defines if this link allows a user to preview, edit, and download an item. These permissions refer to the shared link only and do not supersede permissions applied to the item itself.
Show child attributes
Defines if the shared link allows for the item to be downloaded. For shared links on folders, this also applies to any items in the folder.
This value can be set to true when the effective access level is
set to open or company, not collaborators.
true
Defines if the shared link allows for the item to be previewed.
This value is always true. For shared links on folders this also
applies to any items in the folder.
true
Defines if the shared link allows for the item to be edited.
This value can only be true if can_download is also true and if
the item has a type of file.
false
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.
Show child attributes
The unique identifier that represent a folder.
The ID for any folder can be determined
by visiting a folder in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/folders/123
the folder_id is 123.
"12345"
The value will always be folder.
folder "folder"
The HTTP etag of this folder. This can be used within some API
endpoints in the If-Match and If-None-Match headers to only
perform changes on the folder if (no) changes have happened.
"1"
A 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.
"3"
The name of the folder.
"Contracts"
Defines if this item has been deleted or not.
active when the item has is not in the trashtrashed when the item has been moved to the trash but not deleteddeleted when the item has been permanently deleted.active, trashed, deleted "active"
The version number of this file.
"1"
The number of comments on this file.
10
Describes the permissions that the current user has for this file.
Show child attributes
Specifies if the current user can delete this item.
true
Specifies if the current user can download this item.
true
Specifies if the current user can invite new users to collaborate on this item, and if the user can update the role of a user already collaborated on this item.
true
Specifies if the user can rename this item.
true
Specifies if the user can change the access level of an existing shared link on this item.
true
Specifies if the user can create a shared link for this item.
true
Specifies if the user can place annotations on this file.
true
Specifies if the user can place comments on this file.
true
Specifies if the user can preview this file.
true
Specifies if the user can upload a new version of this file.
true
Specifies if the user view all annotations placed on this file.
true
Specifies if the user view annotations placed by themselves on this file.
true
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.
1 - 100 elements["approved"]The lock held on this file. If there is no lock, this can either
be null or have a timestamp in the past.
Show child attributes
The unique identifier for this lock.
"11446498"
The value will always be lock.
lock "lock"
The user who created the lock.
Show child attributes
The unique identifier for this user.
"11446498"
The value will always be user.
user "user"
The display name of this user.
50"Aaron Levie"
The primary email address of this user.
"ceo@example.com"
The time this lock was created at.
"2012-12-12T10:53:43-08:00"
The time this lock is to expire at, which might be in the past.
"2012-12-12T10:53:43-08:00"
Whether or not the file can be downloaded while locked.
true
If the lock is managed by an application rather than a user, this field identifies the type of the application that holds the lock. This is an open enum and may be extended with additional values in the future.
gsuite, office_wopi, office_wopiplus, other "office_wopiplus"
Indicates the (optional) file extension for this file. By default, this is set to an empty string.
"pdf"
Indicates if the file is a package. Packages are commonly used by Mac Applications and can include iWork files.
true
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.
Show child attributes
The requested access token.
"c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQ"
The time in seconds by which this token will expire.
3600
The type of access token returned.
bearer "bearer"
The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources.
Show child attributes
The scopes for the resource access.
annotation_edit, annotation_view_all, annotation_view_self, base_explorer, base_picker, base_preview, base_upload, item_delete, item_download, item_preview, item_rename, item_share, item_upload, item_read "item_download"
The file or folder resource.
A mini representation of a file version, used when
nested under another resource.
The bare basic representation of a folder, the minimal
amount of fields returned when using the fields query
parameter.
Show child attributes
The unique identifier that represent a folder.
The ID for any folder can be determined
by visiting a folder in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/folders/123
the folder_id is 123.
"12345"
The value will always be folder.
folder "folder"
The HTTP etag of this folder. This can be used within some API
endpoints in the If-Match and If-None-Match headers to only
perform changes on the folder if (no) changes have happened.
"1"
A 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.
"3"
The name of the folder.
"Contracts"
The actual expiring embed URL for this file, constructed from the file ID and access tokens specified in this object.
"https://cloud.app.box.com/preview/expiring_embed/..."
Specifies if the file can be accessed via the direct shared link or a shared link to a parent folder.
true
A list of the types of roles that user can be invited at when sharing this file.
editor, viewer, previewer, uploader, previewer uploader, viewer uploader, co-owner ["editor"]Specifies if this file is owned by a user outside of the authenticated enterprise.
true
Specifies if this file has any other collaborators.
true
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.
Show child attributes
A list of metadata instances, nested within key-value pairs of their scope
and templateKey.
Show child attributes
An instance of a metadata template, which has been applied to a file or folder. An instance of a metadata template, which has been applied to a file or folder. The base representation of a metadata instance.
Show child attributes
The identifier of the item that this metadata instance
has been attached to. This combines the type and the id
of the parent in the form {type}_{id}.
"folder_59449484661,"
The name of the template.
"marketingCollateral"
An ID for the scope in which this template
has been applied. This will be enterprise_{enterprise_id} for templates
defined for use in this enterprise, and global for general templates
that are available to all enterprises using Box.
"enterprise_27335"
The version of the metadata instance. This version starts at 0 and increases every time a user-defined property is modified.
1
Whether the user can edit this metadata instance.
true
A UUID to identify the metadata instance.
36"01234500-12f1-1234-aa12-b1d234cb567e"
A unique identifier for the "type" of this instance. This is an internal system property and should not be used by a client application.
"properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0"
The last-known version of the template of the object. This is an internal system property and should not be used by a client application.
2
A value for each of the fields that are present
on the metadata template.
For the global.properties template this can be
a list of zero or more fields,
as this template allows for any generic key-value pairs
to be stored stored in the template.
"Aaron Levie"
{
"marketingCollateral": {
"$canEdit": true,
"$id": "01234500-12f1-1234-aa12-b1d234cb567e",
"$parent": "folder_59449484661",
"$scope": "enterprise_27335",
"$template": "marketingCollateral",
"$type": "properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0",
"$typeVersion": 2,
"$version": 1
}
}{
"enterprise_27335": {
"marketingCollateral": {
"$canEdit": true,
"$id": "01234500-12f1-1234-aa12-b1d234cb567e",
"$parent": "folder_59449484661",
"$scope": "enterprise_27335",
"$template": "marketingCollateral",
"$type": "properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0",
"$typeVersion": 2,
"$version": 1
}
}
}When the file will automatically be deleted.
"2012-12-12T10:53:43-08:00"
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.
Show child attributes
A list of files.
Show child attributes
An object containing the URL that can be used to actually fetch the representation.
Show child attributes
The download URL that can be used to fetch the representation. Make sure to make an authenticated API call to this endpoint.
This URL is a template and will require the {+asset_path} to
be replaced by a path. In general, for unpaged representations
it can be replaced by an empty string.
For paged representations, replace the {+asset_path} with the
page to request plus the extension for the file, for example
1.pdf.
When requesting the download URL the following additional query params can be passed along.
set_content_disposition_type - Sets the
Content-Disposition header in the API response with the
specified disposition type of either inline or attachment.
If not supplied, the Content-Disposition header is not
included in the response.
set_content_disposition_filename - Allows the application to
define the representation's file name used in the
Content-Disposition header. If not defined, the filename
is derived from the source file name in Box combined with the
extension of the representation.
"https://dl.boxcloud.com/api/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048/content/{+asset_path}?watermark_content=4567"
An object containing the URL that can be used to fetch more info on this representation.
Show child attributes
The API URL that can be used to get more info on this file representation. Make sure to make an authenticated API call to this endpoint.
"https://api.box.com/2.0/internal_files/123/versions/345/representations/png_paged_2048x2048"
An object containing the size and type of this presentation.
Show child attributes
The width by height size of this representation in pixels.
"2048x2048"
Indicates if the representation is build up out of multiple pages.
"true"
Indicates if the representation can be used as a thumbnail of the file.
"true"
Indicates the file type of the returned representation.
"png"
An object containing the status of this representation.
Show child attributes
The status of the representation.
success defines the representation as ready to be viewed.viewable defines a video to be ready for viewing.pending defines the representation as to be generated. Retry
this endpoint to re-check the status.none defines that the representation will be created when
requested. Request the URL defined in the info object to
trigger this generation.success, viewable, pending, none "success"
Details about the classification applied to this file.
Show child attributes
The name of the classification.
"Top Secret"
An explanation of the meaning of this classification.
"Content that should not be shared outside the company."
The color that is used to display the classification label in a user-interface. Colors are defined by the admin or co-admin who created the classification in the Box web app.
"#FF0000"
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 retention expiration timestamp for the given file.
"2012-12-12T10:53:43-08:00"
A list of the types of roles that user can be invited at when sharing this file.
can_preview, can_download, can_edit ["can_preview"]This 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.
true
Was this page helpful?