boxapi
Module boxapi
API
Definitions
ballerinax/boxapi Ballerina library
Overview
Box Platform API connector consume the data exposed in https://api.box.com/2.0. It is currently supporting operations except metadata operations.
Configuring Connector
Prerequisites
- Box platform account
Obtaining tokens
To utilize Box Platform API users have to login to the Box platform account given by Box platform, User can register for a new account if he/she doesn't have an account.
Authentication available.
- OAuth Authentication
OAuth Authentication
If user have to use OAuth authentication, user should obtain bearer token
To obtain client credentials please follow these steps
- Go to Box platform and login or register for a new account
- Submit information in register form and complete login process
- Navigate to developer console, create new app and get needed credentials
- Create and obtain bearer token credentials and store somewhere securely
Then provide the obtained bearer token in client configuration.
Quickstart
Step 1: Import Box platform module
First, import the ballerinax/boxapi module into the Ballerina project.
import ballerinax/boxapi;
Step 2: Add token you get in Config.toml
.
[authConfig] token = "<Enter your token here>"
Step 3: Configure the connection credentials.
configurable http:BearerTokenConfig & readonly authConfig = ?; boxapi:ClientConfig clientConfig = { authConfig : authConfig }; boxapi:Client baseClient = check new Client(clientConfig, serviceUrl = "https://api.box.com/2.0");
Step 4: Get file using ID
boxapi:File file = check baseClient->getFilesId("833080141230", "bal");
Snippets
Snippets of some operations.
Get file using ID
boxapi:File file = check baseClient->getFilesId("833080141230", "bal");
Get current user
boxapi:User useer = check baseClient->getUsersMe();
Clients
boxapi: Client
Box Platform provides functionality to provide access to content stored within Box. It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies.
Constructor
Client initialization for Box API.
init (ClientConfig clientConfig, string serviceUrl)
- clientConfig ClientConfig - Client configuration details
- serviceUrl string "https://api.box.com/2.0" - Connector server URL
getAuthorize
function getAuthorize(string responseType, string clientId, string? redirectUri, string? state, string? scope) returns string|error
Authorize user
Parameters
- responseType string - The type of response we'd like to receive.
- clientId string - The Client ID of the application that is requesting to authenticate the user. To get the Client ID for your application, log in to your Box developer console and click the Edit Application link for the application you're working with. In the OAuth 2.0 Parameters section of the configuration page, find the item labelled
client_id
. The text of that item is your application's Client ID.
- redirectUri string? (default ()) - The URL to which Box redirects the browser after the user has granted or denied the application permission. This URL must match the redirect URL in the configuration of your application. It must be a valid HTTPS URL and it needs to be able to handle the redirection to complete the next step in the OAuth 2.0 flow.
- state string? (default ()) - A custom string of your choice. Box will pass the same string to the redirect URL when authentication is complete. This parameter can be used to identify a user on redirect, as well as protect against hijacked sessions and other exploits.
- scope string? (default ()) - A comma-separated list of application scopes you'd like to authenticate the user for. This defaults to all the scopes configured for the application in its configuration page.
postOauth2Token
function postOauth2Token(PostOAuth2Token payload) returns AccessToken|error
Request access token
Parameters
- payload PostOAuth2Token -
Return Type
- AccessToken|error - Returns a new Access Token that can be used to make authenticated API calls by passing along the token in a authorization header as follows
Authorization: Bearer <Token>
.
postOauth2TokenRefresh
function postOauth2TokenRefresh(Postoauth2tokenRefreshaccesstoken payload) returns AccessToken|error
Refresh access token
Parameters
- payload Postoauth2tokenRefreshaccesstoken -
Return Type
- AccessToken|error - Returns a new Access Token that can be used to make authenticated API calls by passing along the token in a authorization header as follows
Authorization: Bearer <Token>
.
postOauth2Revoke
function postOauth2Revoke(PostOAuth2Revoke payload) returns Response|error
Revoke access token
Parameters
- payload PostOAuth2Revoke -
getFilesId
function getFilesId(string file_id, string xRepHints, string[]? fields, string? ifNoneMatch, string? boxapi) returns File|error
Get file information
Parameters
- file_id string - 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
thefile_id
is123
.
- xRepHints string - A header required to request specific
representations
of a file. Use this in combination with thefields
query parameter to request a specific file representation. The general format for these representations isX-Rep-Hints: [...]
where[...]
is one or many hints in the format[fileType?query]
. For example, to request apng
representation in32x32
as well as94x94
pixel dimensions provide the following hints.X-Rep-Hints: [jpg?dimensions=32x32][jpg?dimensions=94x94]
Additionally, atext
representation is available for all document file types in Box using the[extracted_text]
representation.X-Rep-Hints: [extracted_text]
- fields string[]? (default ()) - 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. Additionally this field can be used to query any metadata applied to the file by specifying the
metadata
field as well as the scope and key of the template to retrieve, for example?field=metadata.enterprise_12345.contractTemplate
.
- ifNoneMatch string? (default ()) - 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 a304 Not Modified
if the item has not changed since.
- boxapi string? (default ()) - The URL, and optional password, for the shared link of this item. This header can be used to access items that have not been explicitly shared with a user. Use the format
shared_link=[link]
or if a password is required then useshared_link=[link]&shared_link_password=[password]
. This header can be used on the file or folder shared, as well as on any files or folders nested within the item.
Return Type
putFilesId
function putFilesId(string file_id, Body payload, string[]? fields, string? ifMatch) returns File|error
Update file
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body -
- fields string[]? (default ()) - 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.
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
Return Type
postFilesId
Restore file
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body1 -
- fields string[]? (default ()) - 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.
deleteFilesId
Delete file
Parameters
- file_id string - 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
thefile_id
is123
.
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
getFilesIdContent
function getFilesIdContent(string file_id, string? range, string? boxapi, string? 'version, string? accessToken) returns Response|error
Download file
Parameters
- file_id string - 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
thefile_id
is123
.
- range string? (default ()) - The byte range of the content to download. The format
{start_byte}-{end_byte}
can be used to specify what section of the file to download.
- boxapi string? (default ()) - The URL, and optional password, for the shared link of this item. This header can be used to access items that have not been explicitly shared with a user. Use the format
shared_link=[link]
or if a password is required then useshared_link=[link]&shared_link_password=[password]
. This header can be used on the file or folder shared, as well as on any files or folders nested within the item.
- 'version string? (default ()) - The file version to download
- accessToken string? (default ()) - An optional access token that can be used to pre-authenticate this request, which means that a download link can be shared with a browser or a third party service without them needing to know how to handle the authentication. When using this parameter, please make sure that the access token is sufficiently scoped down to only allow read access to that file and no other files or folders.
Return Type
postFilesIdContent
function postFilesIdContent(string file_id, Body2 payload, string? ifMatch, string[]? fields, string? contentMd5) returns Files|error
Upload file version
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body2 -
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
- fields string[]? (default ()) - 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.
- contentMd5 string? (default ()) - An optional header containing the SHA1 hash of the file to ensure that the file was not corrupted in transit.
postFilesContent
Upload file
Parameters
- payload Body3 -
- fields string[]? (default ()) - 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.
- contentMd5 string? (default ()) - An optional header containing the SHA1 hash of the file to ensure that the file was not corrupted in transit.
postFilesUploadSessions
function postFilesUploadSessions(Body4 payload) returns UploadSession|error
Create upload session
Parameters
- payload Body4 -
Return Type
- UploadSession|error - Returns a new upload session.
postFilesIdUploadSessions
function postFilesIdUploadSessions(string file_id, Body5 payload) returns UploadSession|error
Create upload session for existing file
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body5 -
Return Type
- UploadSession|error - Returns a new upload session.
getFilesUploadSessionsId
function getFilesUploadSessionsId(string upload_session_id) returns UploadSession|error
Get upload session
Parameters
- upload_session_id string - The ID of the upload session.
Return Type
- UploadSession|error - Returns an upload session object.
putFilesUploadSessionsId
function putFilesUploadSessionsId(string upload_session_id, string digest, string contentRange, string payload) returns UploadedPart|error
Upload part of file
Parameters
- upload_session_id string - The ID of the upload session.
- digest string - The [RFC3230][1] message digest of the chunk uploaded. Only SHA1 is supported. The SHA1 digest must be Base64 encoded. The format of this header is as
sha=BASE64_ENCODED_DIGEST
. [1]: https://tools.ietf.org/html/rfc3230
- contentRange string - The byte range of the chunk. Must not overlap with the range of a part already uploaded this session.
- payload string -
Return Type
- UploadedPart|error - Chunk has been uploaded successfully.
deleteFilesUploadSessionsId
Remove upload session
Parameters
- upload_session_id string - The ID of the upload session.
getFilesUploadSessionsIdParts
function getFilesUploadSessionsIdParts(string upload_session_id, int? offset, int? 'limit) returns UploadParts|error
List parts
Parameters
- upload_session_id string - The ID of the upload session.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- UploadParts|error - Returns a list of parts that have been uploaded.
postFilesUploadSessionsIdCommit
function postFilesUploadSessionsIdCommit(string upload_session_id, string digest, Body6 payload, string? ifMatch, string? ifNoneMatch) returns Files|error
Commit upload session
Parameters
- upload_session_id string - The ID of the upload session.
- digest string - The [RFC3230][1] message digest of the whole file. Only SHA1 is supported. The SHA1 digest must be Base64 encoded. The format of this header is as
sha=BASE64_ENCODED_DIGEST
. [1]: https://tools.ietf.org/html/rfc3230
- payload Body6 -
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
- ifNoneMatch string? (default ()) - 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 a304 Not Modified
if the item has not changed since.
postFilesIdCopy
Copy file
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body7 -
- fields string[]? (default ()) - 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.
Return Type
getFilesIdThumbnailId
function getFilesIdThumbnailId(string file_id, string extension, int? minHeight, int? minWidth, int? maxHeight, int? maxWidth) returns string|error
Get file thumbnail
Parameters
- file_id string - 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
thefile_id
is123
.
- extension string - The file format for the thumbnail
- minHeight int? (default ()) - The minimum height of the thumbnail
- minWidth int? (default ()) - The minimum width of the thumbnail
- maxHeight int? (default ()) - The maximum height of the thumbnail
- maxWidth int? (default ()) - The maximum width of the thumbnail
Return Type
getFilesIdCollaborations
function getFilesIdCollaborations(string file_id, string[]? fields, int? 'limit, string? marker) returns Collaborations|error
List file collaborations
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
Return Type
- Collaborations|error - Returns a collection of collaboration objects. If there are no collaborations on this file an empty collection will be returned. This list includes pending collaborations, for which the
status
is set topending
, indicating invitations that have been sent but not yet accepted.
getFilesIdComments
function getFilesIdComments(string file_id, string[]? fields, int? 'limit, int? offset) returns Comments|error
List file comments
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
getFilesIdTasks
List tasks on file
Parameters
- file_id string - 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
thefile_id
is123
.
Return Type
getFilesIdTrash
Get trashed file
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string[]? (default ()) - 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.
Return Type
deleteFilesIdTrash
Permanently remove file
Parameters
- file_id string - 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
thefile_id
is123
.
getFilesIdVersions
function getFilesIdVersions(string file_id, string[]? fields, int? 'limit, int? offset) returns FileVersions|error
List all file versions
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
- FileVersions|error - Returns an array of past versions for this file.
getFilesIdVersionsId
function getFilesIdVersionsId(string file_id, string file_version_id, string[]? fields) returns FileVersion|error
Get file version
Parameters
- file_id string - 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
thefile_id
is123
.
- file_version_id string - The ID of the file version
- fields string[]? (default ()) - 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.
Return Type
- FileVersion|error - Returns a specific version of a file. Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields.
deleteFilesIdVersionsId
function deleteFilesIdVersionsId(string file_id, string file_version_id, string? ifMatch) returns Response|error
Remove file version
Parameters
- file_id string - 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
thefile_id
is123
.
- file_version_id string - The ID of the file version
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
postFilesIdVersionsCurrent
function postFilesIdVersionsCurrent(string file_id, Body8 payload, string[]? fields) returns FileVersion|error
Revert file version
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body8 -
- fields string[]? (default ()) - 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.
Return Type
- FileVersion|error - Returns a newly created file version object.
getFilesIdWatermark
Get watermark on file
Parameters
- file_id string - 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
thefile_id
is123
.
Return Type
putFilesIdWatermark
Apply watermark to file
Parameters
- file_id string - 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
thefile_id
is123
.
- payload Body9 -
Return Type
deleteFilesIdWatermark
Remove watermark from file
Parameters
- file_id string - 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
thefile_id
is123
.
Return Type
getFileRequestsId
function getFileRequestsId(string file_request_id) returns FileRequest|error
Get file request
Parameters
- file_request_id string - The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
.
Return Type
- FileRequest|error - Returns a file request object.
putFileRequestsId
function putFileRequestsId(string file_request_id, FileRequestUpdateRequest payload, string? ifMatch) returns FileRequest|error
Update file request
Parameters
- file_request_id string - The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
.
- payload FileRequestUpdateRequest -
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
Return Type
- FileRequest|error - Returns the updated file request object.
deleteFileRequestsId
Delete file request
Parameters
- file_request_id string - The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
.
Return Type
postFileRequestsIdCopy
function postFileRequestsIdCopy(string file_request_id, FileRequestCopyRequest payload) returns FileRequest|error
Copy file request
Parameters
- file_request_id string - The unique identifier that represent a file request. The ID for any file request can be determined by visiting a file request builder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/filerequest/123
thefile_request_id
is123
.
- payload FileRequestCopyRequest -
Return Type
- FileRequest|error - Returns updated file request object.
getFoldersId
function getFoldersId(string folder_id, string[]? fields, string? ifNoneMatch, string? boxapi) returns Folder|error
Get folder information
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string[]? (default ()) - 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. Additionally this field can be used to query any metadata applied to the file by specifying the
metadata
field as well as the scope and key of the template to retrieve, for example?field=metadata.enterprise_12345.contractTemplate
.
- ifNoneMatch string? (default ()) - 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 a304 Not Modified
if the item has not changed since.
- boxapi string? (default ()) - The URL, and optional password, for the shared link of this item. This header can be used to access items that have not been explicitly shared with a user. Use the format
shared_link=[link]
or if a password is required then useshared_link=[link]&shared_link_password=[password]
. This header can be used on the file or folder shared, as well as on any files or folders nested within the item.
Return Type
- Folder|error - Returns a folder, including the first 100 entries in the folder. To fetch more items within the folder, please use the Get items in a folder endpoint. Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields.
putFoldersId
function putFoldersId(string folder_id, Body10 payload, string[]? fields, string? ifMatch) returns Folder|error
Update folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- payload Body10 -
- fields string[]? (default ()) - 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.
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
Return Type
- Folder|error - Returns a folder object for the updated folder Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields. This call will return synchronously. This holds true even when moving folders with a large a large number of items in all of its descendants. For very large folders, this means the call could take minutes or hours to return.
postFoldersId
Restore folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- payload Body11 -
- fields string[]? (default ()) - 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.
deleteFoldersId
function deleteFoldersId(string folder_id, string? ifMatch, boolean? recursive) returns Response|error
Delete folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- ifMatch string? (default ()) - 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 a412 Precondition Failed
if it has changed since.
- recursive boolean? (default ()) - Delete a folder that is not empty by recursively deleting the folder and all of its content.
Return Type
getFoldersIdItems
function getFoldersIdItems(string folder_id, string[]? fields, boolean? usemarker, string? marker, int? offset, int? 'limit, string? boxapi, string? sort, string? direction) returns Items|error
List items in folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string[]? (default ()) - 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. Additionally this field can be used to query any metadata applied to the file by specifying the
metadata
field as well as the scope and key of the template to retrieve, for example?field=metadata.enterprise_12345.contractTemplate
.
- usemarker boolean? (default ()) - Specifies whether to use marker-based pagination instead of offset-based pagination. Only one pagination method can be used at a time. By setting this value to true, the API will return a
marker
field that can be passed as a parameter to this endpoint to get the next page of the response.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
- boxapi string? (default ()) - The URL, and optional password, for the shared link of this item. This header can be used to access items that have not been explicitly shared with a user. Use the format
shared_link=[link]
or if a password is required then useshared_link=[link]&shared_link_password=[password]
. This header can be used on the file or folder shared, as well as on any files or folders nested within the item.
- sort string? (default ()) - Defines the second attribute by which items are sorted. Items are always sorted by their
type
first, with folders listed before files, and files listed before web links. This parameter is not supported for marker-based pagination on the root folder (the folder with an ID of0
).
- direction string? (default ()) - The direction to sort results in. This can be either in alphabetical ascending (
ASC
) or descending (DESC
) order.
Return Type
postFolders
Create folder
Parameters
- payload Body12 -
- fields string[]? (default ()) - 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.
Return Type
postFoldersIdCopy
Copy folder
Parameters
- folder_id string - The unique identifier of the folder to copy. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder with the ID0
can not be copied.
- payload Body13 -
- fields string[]? (default ()) - 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.
Return Type
getFoldersIdCollaborations
function getFoldersIdCollaborations(string folder_id, string[]? fields) returns Collaborations|error
List folder collaborations
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
.
- fields string[]? (default ()) - 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.
Return Type
- Collaborations|error - Returns a collection of collaboration objects. If there are no collaborations on this folder an empty collection will be returned. This list includes pending collaborations, for which the
status
is set topending
, indicating invitations that have been sent but not yet accepted.
getFoldersIdTrash
Get trashed folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string[]? (default ()) - 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.
Return Type
deleteFoldersIdTrash
Permanently remove folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
getFoldersTrashItems
function getFoldersTrashItems(string[]? fields, int? 'limit, int? offset, boolean? usemarker, string? marker, string? direction, string? sort) returns Items|error
List trashed items
Parameters
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
- usemarker boolean? (default ()) - Specifies whether to use marker-based pagination instead of offset-based pagination. Only one pagination method can be used at a time. By setting this value to true, the API will return a
marker
field that can be passed as a parameter to this endpoint to get the next page of the response.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- direction string? (default ()) - The direction to sort results in. This can be either in alphabetical ascending (
ASC
) or descending (DESC
) order.
- sort string? (default ()) - Defines the second attribute by which items are sorted. Items are always sorted by their
type
first, with folders listed before files, and files listed before web links. This parameter is not supported when using marker-based pagination.
getFoldersIdWatermark
Get watermark for folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
Return Type
putFoldersIdWatermark
Apply watermark to folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- payload Body14 -
Return Type
deleteFoldersIdWatermark
Remove watermark from folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
Return Type
getFolderLocks
function getFolderLocks(string folderId) returns FolderLocks|error
List folder locks
Parameters
- folderId string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
Return Type
- FolderLocks|error - Returns details for all folder locks applied to the folder, including the lock type and user that applied the lock.
postFolderLocks
function postFolderLocks(Body15 payload) returns FolderLock|error
Create folder lock
Parameters
- payload Body15 -
Return Type
- FolderLock|error - Returns the instance of the folder lock that was applied to the folder, including the user that applied the lock and the operations set.
deleteFolderLocksId
Delete folder lock
Parameters
- folder_lock_id string - The ID of the folder lock.
getCommentsId
Get comment
Parameters
- comment_id string - The ID of the comment.
- fields string[]? (default ()) - 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.
putCommentsId
Update comment
Parameters
- comment_id string - The ID of the comment.
- payload Body16 -
- fields string[]? (default ()) - 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.
deleteCommentsId
Remove comment
Parameters
- comment_id string - The ID of the comment.
postComments
Create comment
Parameters
- payload Body17 -
- fields string[]? (default ()) - 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.
Return Type
getCollaborationsId
function getCollaborationsId(string collaboration_id, string[]? fields) returns Collaboration|error
Get collaboration
Parameters
- collaboration_id string - The ID of the collaboration
- fields string[]? (default ()) - 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.
Return Type
- Collaboration|error - Returns a collaboration object.
putCollaborationsId
function putCollaborationsId(string collaboration_id, Body18 payload) returns Collaboration|error
Update collaboration
Return Type
- Collaboration|error - Returns an updated collaboration object unless the owner has changed.
deleteCollaborationsId
Remove collaboration
Parameters
- collaboration_id string - The ID of the collaboration
Return Type
getCollaborations
function getCollaborations(string status, string[]? fields, int? offset, int? 'limit) returns Collaborations|error
List pending collaborations
Parameters
- status string - The status of the collaborations to retrieve
- fields string[]? (default ()) - 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.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- Collaborations|error - Returns a collection of pending collaboration objects. If the user has no pending collaborations, the collection will be empty.
postCollaborations
function postCollaborations(Body19 payload, string[]? fields, boolean? notify) returns Collaboration|error
Create collaboration
Parameters
- payload Body19 -
- fields string[]? (default ()) - 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.
- notify boolean? (default ()) - Determines if users should receive email notification for the action performed.
Return Type
- Collaboration|error - Returns a new collaboration object.
postTasks
Create task
Parameters
- payload Body20 -
getTasksId
Get task
Parameters
- task_id string - The ID of the task.
putTasksId
Update task
deleteTasksId
Remove task
Parameters
- task_id string - The ID of the task.
getTasksIdAssignments
function getTasksIdAssignments(string task_id) returns TaskAssignments|error
List task assignments
Parameters
- task_id string - The ID of the task.
Return Type
- TaskAssignments|error - Returns a collection of task assignment defining what task on a file has been assigned to which users and by who.
postTaskAssignments
function postTaskAssignments(Body22 payload) returns TaskAssignment|error
Assign task
Parameters
- payload Body22 -
Return Type
- TaskAssignment|error - Returns a new task assignment object.
getTaskAssignmentsId
function getTaskAssignmentsId(string task_assignment_id) returns TaskAssignment|error
Get task assignment
Parameters
- task_assignment_id string - The ID of the task assignment.
Return Type
- TaskAssignment|error - Returns a task assignment, specifying who the task has been assigned to and by whom.
putTaskAssignmentsId
function putTaskAssignmentsId(string task_assignment_id, Body23 payload) returns TaskAssignment|error
Update task assignment
Return Type
- TaskAssignment|error - Returns the updated task assignment object.
deleteTaskAssignmentsId
Unassign task
Parameters
- task_assignment_id string - The ID of the task assignment.
Return Type
getSharedItems
Find file for shared link
Parameters
- boxapi string - A header containing the shared link and optional password for the shared link. The format for this header is as follows.
shared_link=[link]&shared_link_password=[password]
- ifNoneMatch string? (default ()) - 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 a304 Not Modified
if the item has not changed since.
- fields string[]? (default ()) - 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.
Return Type
getFilesIdGetSharedLink
Get shared link for file
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
Return Type
putFilesIdAddSharedLink
Add shared link to file
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body24 -
putFilesIdUpdateSharedLink
function putFilesIdUpdateSharedLink(string file_id, string fields, Body25 payload) returns File|error
Update shared link on file
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body25 -
Return Type
putFilesIdRemoveSharedLink
function putFilesIdRemoveSharedLink(string file_id, string fields, Body26 payload) returns File|error
Remove shared link from file
Parameters
- file_id string - 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
thefile_id
is123
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body26 -
getSharedItemsFolders
function getSharedItemsFolders(string boxapi, string? ifNoneMatch, string[]? fields) returns Folder|error
Find folder for shared link
Parameters
- boxapi string - A header containing the shared link and optional password for the shared link. The format for this header is as follows.
shared_link=[link]&shared_link_password=[password]
- ifNoneMatch string? (default ()) - 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 a304 Not Modified
if the item has not changed since.
- fields string[]? (default ()) - 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.
Return Type
getFoldersIdGetSharedLink
Get shared link for folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
Return Type
putFoldersIdAddSharedLink
function putFoldersIdAddSharedLink(string folder_id, string fields, Body27 payload) returns Folder|error
Add shared link to folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body27 -
Return Type
putFoldersIdUpdateSharedLink
function putFoldersIdUpdateSharedLink(string folder_id, string fields, Body28 payload) returns Folder|error
Update shared link on folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body28 -
Return Type
putFoldersIdRemoveSharedLink
function putFoldersIdRemoveSharedLink(string folder_id, string fields, Body29 payload) returns Folder|error
Remove shared link from folder
Parameters
- folder_id string - The unique identifier that represent a folder. The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/folder/123
thefolder_id
is123
. The root folder of a Box account is always represented by the ID0
.
- fields string - Explicitly request the
shared_link
fields to be returned for this item.
- payload Body29 -
postWebLinks
Create web link
Parameters
- payload Body30 -
getWebLinksId
Get web link
Parameters
- web_link_id string - The ID of the web link.
- boxapi string? (default ()) - The URL, and optional password, for the shared link of this item. This header can be used to access items that have not been explicitly shared with a user. Use the format
shared_link=[link]
or if a password is required then useshared_link=[link]&shared_link_password=[password]
. This header can be used on the file or folder shared, as well as on any files or folders nested within the item.
putWebLinksId
Update web link
postWebLinksId
Restore web link
Parameters
- web_link_id string - The ID of the web link.
- payload Body32 -
- fields string[]? (default ()) - 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.
deleteWebLinksId
Remove web link
Parameters
- web_link_id string - The ID of the web link.
Return Type
getWebLinksIdTrash
Get trashed web link
Parameters
- web_link_id string - The ID of the web link.
- fields string[]? (default ()) - 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.
Return Type
deleteWebLinksIdTrash
Permanently remove web link
Parameters
- web_link_id string - The ID of the web link.
getUsers
function getUsers(string? filterTerm, string? userType, string? externalAppUserId, string[]? fields, int? offset, int? 'limit, boolean? usemarker, string? marker) returns Users|error
List enterprise users
Parameters
- filterTerm string? (default ()) - Limits the results to only users who's
name
orlogin
start with the search term. For externally managed users, the search term needs to completely match the in order to find the user, and it will only return one user at a time.
- userType string? (default ()) - Limits the results to the kind of user specified. *
all
returns every kind of user for whom thelogin
orname
partially matches thefilter_term
. It will only return an external user if the login matches thefilter_term
completely, and in that case it will only return that user. *managed
returns all managed and app users for whom thelogin
orname
partially matches thefilter_term
. *external
returns all external users for whom thelogin
matches thefilter_term
exactly.
- externalAppUserId string? (default ()) - Limits the results to app users with the given
external_app_user_id
value. When creating an app user, anexternal_app_user_id
value can be set. This value can then be used in this endpoint to find any users that match thatexternal_app_user_id
value.
- fields string[]? (default ()) - 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.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
- usemarker boolean? (default ()) - Specifies whether to use marker-based pagination instead of offset-based pagination. Only one pagination method can be used at a time. By setting this value to true, the API will return a
marker
field that can be passed as a parameter to this endpoint to get the next page of the response.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
postUsers
Create user
Parameters
- payload Body33 -
- fields string[]? (default ()) - 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.
getUsersMe
Get current user
Parameters
- fields string[]? (default ()) - 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.
getUsersId
Get user
Parameters
- user_id string - The ID of the user.
- fields string[]? (default ()) - 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.
Return Type
putUsersId
Update user
Parameters
- user_id string - The ID of the user.
- payload Body34 -
- fields string[]? (default ()) - 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.
deleteUsersId
Delete user
Parameters
- user_id string - The ID of the user.
- notify boolean? (default ()) - Whether the user will receive email notification of the deletion
- force boolean? (default ()) - Whether the user should be deleted even if this user still own files
getUsersIdAvatar
Get user avatar
Parameters
- user_id string - The ID of the user.
Return Type
putUsersIdFolders0
function putUsersIdFolders0(string user_id, Body35 payload, string[]? fields, boolean? notify) returns Folder|error
Transfer owned folders
Parameters
- user_id string - The ID of the user.
- payload Body35 -
- fields string[]? (default ()) - 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.
- notify boolean? (default ()) - Determines if users should receive email notification for the action performed.
getUsersIdEmailAliases
function getUsersIdEmailAliases(string user_id) returns EmailAliases|error
List user's email aliases
Parameters
- user_id string - The ID of the user.
Return Type
- EmailAliases|error - Returns a collection of email aliases.
postUsersIdEmailAliases
function postUsersIdEmailAliases(string user_id, Body36 payload) returns EmailAlias|error
Create email alias
Return Type
- EmailAlias|error - Returns the newly created email alias object.
deleteUsersIdEmailAliasesId
Remove email alias
getUsersIdMemberships
function getUsersIdMemberships(string user_id, int? 'limit, int? offset) returns GroupMemberships|error
List user's groups
Parameters
- user_id string - The ID of the user.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
- GroupMemberships|error - Returns a collection of membership objects. If there are no memberships, an empty collection will be returned.
postInvites
Create user invite
Parameters
- payload Body37 -
- fields string[]? (default ()) - 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.
getInvitesId
Get user invite status
Parameters
- invite_id string - The ID of an invite.
- fields string[]? (default ()) - 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.
getGroups
function getGroups(string? filterTerm, string[]? fields, int? 'limit, int? offset) returns Groups|error
List groups for enterprise
Parameters
- filterTerm string? (default ()) - Limits the results to only groups whose
name
starts with the search term.
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
postGroups
Create group
Parameters
- payload Body38 -
- fields string[]? (default ()) - 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.
getGroupsId
Get group
Parameters
- group_id string - The ID of the group.
- fields string[]? (default ()) - 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.
putGroupsId
Update group
Parameters
- group_id string - The ID of the group.
- payload Body39 -
- fields string[]? (default ()) - 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.
deleteGroupsId
Remove group
Parameters
- group_id string - The ID of the group.
getGroupsIdMemberships
function getGroupsIdMemberships(string group_id, int? 'limit, int? offset) returns GroupMemberships|error
List members of group
Parameters
- group_id string - The ID of the group.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
- GroupMemberships|error - Returns a collection of membership objects. If there are no memberships, an empty collection will be returned.
getGroupsIdCollaborations
function getGroupsIdCollaborations(string group_id, int? 'limit, int? offset) returns Collaborations|error
List group collaborations
Parameters
- group_id string - The ID of the group.
- 'limit int? (default ()) - The maximum number of items to return per page.
- offset int? (default 0) - The offset of the item at which to begin the response.
Return Type
- Collaborations|error - Returns a collection of collaboration objects. If there are no collaborations, an empty collection will be returned.
postGroupMemberships
function postGroupMemberships(Body40 payload, string[]? fields) returns GroupMembership|error
Add user to group
Parameters
- payload Body40 -
- fields string[]? (default ()) - 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.
Return Type
- GroupMembership|error - Returns a new group membership object.
getGroupMembershipsId
function getGroupMembershipsId(string group_membership_id, string[]? fields) returns GroupMembership|error
Get group membership
Parameters
- group_membership_id string - The ID of the group membership.
- fields string[]? (default ()) - 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.
Return Type
- GroupMembership|error - Returns the group membership object.
putGroupMembershipsId
function putGroupMembershipsId(string group_membership_id, Body41 payload, string[]? fields) returns GroupMembership|error
Update group membership
Parameters
- group_membership_id string - The ID of the group membership.
- payload Body41 -
- fields string[]? (default ()) - 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.
Return Type
- GroupMembership|error - Returns a new group membership object.
deleteGroupMembershipsId
Remove user from group
Parameters
- group_membership_id string - The ID of the group membership.
Return Type
getWebhooks
List all webhooks
Parameters
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
postWebhooks
Create webhook
Parameters
- payload Body42 -
getWebhooksId
Get webhook
Parameters
- webhook_id string - The ID of the webhook.
putWebhooksId
Update webhook
deleteWebhooksId
Remove webhook
Parameters
- webhook_id string - The ID of the webhook.
Return Type
putSkillInvocationsId
Update all Box Skill cards on file
getEvents
function getEvents(string? streamType, string? streamPosition, int? 'limit, string[]? eventType, string? createdAfter, string? createdBefore) returns Events|error
List user and enterprise events
Parameters
- streamType string? (default "all") - Defines the type of events that are returned *
all
returns everything for a user and is the default *changes
returns events that may cause file tree changes such as file updates or collaborations. *sync
is similar tochanges
but only applies to synced folders *admin_logs
returns all events for an entire enterprise and requires the user making the API call to have admin permissions.
- streamPosition string? (default ()) - The location in the event stream to start receiving events from. *
now
will return an empty list events and the latest stream position for initialization. *0
ornull
will return all events.
- 'limit int? (default 100) - Limits the number of events returned
- eventType string[]? (default ()) - A comma-separated list of events to filter by. This can only be used when requesting the events with a
stream_type
ofadmin_logs
. For any otherstream_type
this value will be ignored.
- createdAfter string? (default ()) - The lower bound date and time to return events for. This can only be used when requesting the events with a
stream_type
ofadmin_logs
. For any otherstream_type
this value will be ignored.
- createdBefore string? (default ()) - The upper bound date and time to return events for. This can only be used when requesting the events with a
stream_type
ofadmin_logs
. For any otherstream_type
this value will be ignored.
Return Type
- Events|error - Returns a list of event objects. Events objects are returned in pages, with each page (chunk) including a list of event objects. The response includes a
chunk_size
parameter indicating how many events were returned in this chunk, as well as the nextstream_position
that can be queried.
optionsEvents
function optionsEvents() returns RealtimeServers|error
Get events long poll endpoint
Return Type
- RealtimeServers|error - Returns a paginated array of servers that can be used instead of the regular endpoints for long-polling events.
getCollections
function getCollections(string[]? fields, int? offset, int? 'limit) returns Collections|error
List all collections
Parameters
- fields string[]? (default ()) - 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.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- Collections|error - Returns all collections for the given user
getCollectionsIdItems
function getCollectionsIdItems(string collection_id, string[]? fields, int? offset, int? 'limit) returns Items|error
List collection items
Parameters
- collection_id string - The ID of the collection.
- fields string[]? (default ()) - 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.
- offset int? (default 0) - The offset of the item at which to begin the response.
- 'limit int? (default ()) - The maximum number of items to return per page.
getRecentItems
function getRecentItems(string[]? fields, int? 'limit, string? marker) returns RecentItems|error
List recently accessed items
Parameters
- fields string[]? (default ()) - 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.
- 'limit int? (default ()) - The maximum number of items to return per page.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
Return Type
- RecentItems|error - Returns a list recent items access by a user.
getRetentionPolicies
function getRetentionPolicies(string? policyName, string? policyType, string? createdByUserId) returns RetentionPolicies|error
List retention policies
Parameters
- policyName string? (default ()) - Filters results by a case sensitive prefix of the name of retention policies.
- policyType string? (default ()) - Filters results by the type of retention policy.
- createdByUserId string? (default ()) - Filters results by the ID of the user who created policy.
Return Type
- RetentionPolicies|error - Returns a list retention policies in the enterprise.
postRetentionPolicies
function postRetentionPolicies(Body45 payload) returns RetentionPolicy|error
Create retention policy
Parameters
- payload Body45 -
Return Type
- RetentionPolicy|error - Returns a new retention policy object.
getRetentionPoliciesId
function getRetentionPoliciesId(string retention_policy_id) returns RetentionPolicy|error
Get retention policy
Parameters
- retention_policy_id string - The ID of the retention policy.
Return Type
- RetentionPolicy|error - Returns the retention policy object.
putRetentionPoliciesId
function putRetentionPoliciesId(string retention_policy_id, Body46 payload) returns RetentionPolicy|error
Update retention policy
Return Type
- RetentionPolicy|error - Returns the updated retention policy object.
getRetentionPoliciesIdAssignments
function getRetentionPoliciesIdAssignments(string retention_policy_id, string? 'type, string? marker, int? 'limit) returns RetentionPolicyAssignments|error
List retention policy assignments
Parameters
- retention_policy_id string - The ID of the retention policy.
- 'type string? (default ()) - The type of the retention policy assignment to retrieve.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- RetentionPolicyAssignments|error - Returns a list of the retention policy assignments associated with the specified retention policy.
postRetentionPolicyAssignments
function postRetentionPolicyAssignments(Body47 payload) returns RetentionPolicyAssignment|error
Assign retention policy
Parameters
- payload Body47 -
Return Type
- RetentionPolicyAssignment|error - Returns a new retention policy assignment object.
getRetentionPolicyAssignmentsId
function getRetentionPolicyAssignmentsId(string retention_policy_assignment_id) returns RetentionPolicyAssignment|error
Get retention policy assignment
Parameters
- retention_policy_assignment_id string - The ID of the retention policy assignment.
Return Type
- RetentionPolicyAssignment|error - Returns the retention policy assignment object.
getLegalHoldPolicies
function getLegalHoldPolicies(string? policyName, string[]? fields, string? marker, int? 'limit) returns LegalHoldPolicies|error
List all legal hold policies
Parameters
- policyName string? (default ()) - Limits results to policies for which the names start with this search term. This is a case-insensitive prefix.
- fields string[]? (default ()) - 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.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- LegalHoldPolicies|error - Returns a list of legal hold policies.
postLegalHoldPolicies
function postLegalHoldPolicies(Body48 payload) returns LegalHoldPolicy|error
Create legal hold policy
Parameters
- payload Body48 -
Return Type
- LegalHoldPolicy|error - Returns a new legal hold policy object.
getLegalHoldPoliciesId
function getLegalHoldPoliciesId(string legal_hold_policy_id) returns LegalHoldPolicy|error
Get legal hold policy
Parameters
- legal_hold_policy_id string - The ID of the legal hold policy
Return Type
- LegalHoldPolicy|error - Returns a legal hold policy object.
putLegalHoldPoliciesId
function putLegalHoldPoliciesId(string legal_hold_policy_id, Body49 payload) returns LegalHoldPolicy|error
Update legal hold policy
Return Type
- LegalHoldPolicy|error - Returns a new legal hold policy object.
deleteLegalHoldPoliciesId
Remove legal hold policy
Parameters
- legal_hold_policy_id string - The ID of the legal hold policy
getLegalHoldPolicyAssignments
function getLegalHoldPolicyAssignments(string policyId, string? assignToType, string? assignToId, string? marker, int? 'limit, string[]? fields) returns LegalHoldPolicyAssignments|error
List legal hold policy assignments
Parameters
- policyId string - The ID of the legal hold policy
- assignToType string? (default ()) - Filters the results by the type of item the policy was applied to.
- assignToId string? (default ()) - Filters the results by the ID of item the policy was applied to.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
- fields string[]? (default ()) - 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.
Return Type
- LegalHoldPolicyAssignments|error - Returns a list of legal hold policy assignments.
postLegalHoldPolicyAssignments
function postLegalHoldPolicyAssignments(Body50 payload) returns LegalHoldPolicyAssignment|error
Assign legal hold policy
Parameters
- payload Body50 -
Return Type
- LegalHoldPolicyAssignment|error - Returns a new legal hold policy assignment.
getLegalHoldPolicyAssignmentsId
function getLegalHoldPolicyAssignmentsId(string legal_hold_policy_assignment_id) returns LegalHoldPolicyAssignment|error
Get legal hold policy assignment
Parameters
- legal_hold_policy_assignment_id string - The ID of the legal hold policy assignment
Return Type
- LegalHoldPolicyAssignment|error - Returns a legal hold policy object.
deleteLegalHoldPolicyAssignmentsId
function deleteLegalHoldPolicyAssignmentsId(string legal_hold_policy_assignment_id) returns Response|error
Unassign legal hold policy
Parameters
- legal_hold_policy_assignment_id string - The ID of the legal hold policy assignment
Return Type
getLegalHoldPolicyAssignmentsIdFilesOnHold
function getLegalHoldPolicyAssignmentsIdFilesOnHold(string legal_hold_policy_assignment_id, string? marker, int? 'limit, string[]? fields) returns FileVersionLegalHolds|error
List current file versions for legal hold policy assignment
Parameters
- legal_hold_policy_assignment_id string - The ID of the legal hold policy assignment
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
- fields string[]? (default ()) - 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.
Return Type
- FileVersionLegalHolds|error - Returns the list of current file versions held under legal hold for a specific legal hold policy assignment.
getLegalHoldPolicyAssignmentsIdFileVersionsOnHold
function getLegalHoldPolicyAssignmentsIdFileVersionsOnHold(string legal_hold_policy_assignment_id, string? marker, int? 'limit, string[]? fields) returns FileVersionLegalHolds|error
List previous file versions for legal hold policy assignment
Parameters
- legal_hold_policy_assignment_id string - The ID of the legal hold policy assignment
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
- fields string[]? (default ()) - 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.
Return Type
- FileVersionLegalHolds|error - Returns the list of previous file versions held under legal hold for a specific legal hold policy assignment.
getFileVersionRetentionsId
function getFileVersionRetentionsId(string file_version_retention_id) returns FileVersionRetention|error
Get retention on file
Parameters
- file_version_retention_id string - The ID of the file version retention
Return Type
- FileVersionRetention|error - Returns a file version retention object.
getFileVersionRetentions
function getFileVersionRetentions(string? fileId, string? fileVersionId, string? policyId, string? dispositionAction, string? dispositionBefore, string? dispositionAfter, int? 'limit, string? marker) returns FileVersionRetentions|error
List file version retentions
Parameters
- fileId string? (default ()) - Filters results by files with this ID.
- fileVersionId string? (default ()) - Filters results by file versions with this ID.
- policyId string? (default ()) - Filters results by the retention policy with this ID.
- dispositionAction string? (default ()) - Filters results by the retention policy with this disposition action.
- dispositionBefore string? (default ()) - Filters results by files that will have their disposition come into effect before this date.
- dispositionAfter string? (default ()) - Filters results by files that will have their disposition come into effect after this date.
- 'limit int? (default ()) - The maximum number of items to return per page.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
Return Type
- FileVersionRetentions|error - Returns a list of all file version retentions for the enterprise.
getFileVersionLegalHoldsId
function getFileVersionLegalHoldsId(string file_version_legal_hold_id) returns FileVersionLegalHold|error
Get file version legal hold
Parameters
- file_version_legal_hold_id string - The ID of the file version legal hold
Return Type
- FileVersionLegalHold|error - Returns the legal hold policy assignments for the file version.
getFileVersionLegalHolds
function getFileVersionLegalHolds(string policyId, string? marker, int? 'limit) returns FileVersionLegalHolds|error
List file version legal holds
Parameters
- policyId string - The ID of the legal hold policy to get the file version legal holds for.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- FileVersionLegalHolds|error - Returns the list of file version legal holds for a specific legal hold policy.
getDevicePinnersId
function getDevicePinnersId(string device_pinner_id) returns DevicePinner|error
Get device pin
Parameters
- device_pinner_id string - The ID of the device pin
Return Type
- DevicePinner|error - Returns information about a single device pin.
deleteDevicePinnersId
Remove device pin
Parameters
- device_pinner_id string - The ID of the device pin
getEnterprisesIdDevicePinners
function getEnterprisesIdDevicePinners(string enterprise_id, string? marker, int? 'limit, string? direction) returns DevicePinners|error
List enterprise device pins
Parameters
- enterprise_id string - The ID of the enterprise
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
- direction string? (default ()) - The direction to sort results in. This can be either in alphabetical ascending (
ASC
) or descending (DESC
) order.
Return Type
- DevicePinners|error - Returns a list of device pins for a given enterprise.
getTermsOfServices
function getTermsOfServices(string? tosType) returns TermsOfServices|error
List terms of services
Parameters
- tosType string? (default ()) - Limits the results to the terms of service of the given type.
Return Type
- TermsOfServices|error - Returns a collection of terms of service text and settings for the enterprise.
postTermsOfServices
Create terms of service
Parameters
- payload Body51 -
getTermsOfServicesId
function getTermsOfServicesId(string terms_of_service_id) returns TermsOfService|error
Get terms of service
Parameters
- terms_of_service_id string - The ID of the terms of service.
Return Type
- TermsOfService|error - Returns a terms of service object.
putTermsOfServicesId
function putTermsOfServicesId(string terms_of_service_id, Body52 payload) returns TermsOfService|error
Update terms of service
Return Type
- TermsOfService|error - Returns an updated terms of service object.
getTermsOfServiceUserStatuses
function getTermsOfServiceUserStatuses(string tosId, string? userId) returns TermsOfServiceUserStatuses|error
List terms of service user statuses
Parameters
- tosId string - The ID of the terms of service.
- userId string? (default ()) - Limits results to the given user ID.
Return Type
- TermsOfServiceUserStatuses|error - Returns a list of terms of service statuses.
postTermsOfServiceUserStatuses
function postTermsOfServiceUserStatuses(Body53 payload) returns TermsOfServiceUserStatus|error
Create terms of service status for new user
Parameters
- payload Body53 -
Return Type
- TermsOfServiceUserStatus|error - Returns a terms of service status object.
putTermsOfServiceUserStatusesId
function putTermsOfServiceUserStatusesId(string terms_of_service_user_status_id, Body54 payload) returns TermsOfServiceUserStatus|error
Update terms of service status for existing user
Parameters
- terms_of_service_user_status_id string - The ID of the terms of service status.
- payload Body54 -
Return Type
- TermsOfServiceUserStatus|error - Returns the updated terms of service status object.
getCollaborationWhitelistEntries
function getCollaborationWhitelistEntries(string? marker, int? 'limit) returns CollaborationAllowlistEntries|error
List allowed collaboration domains
Parameters
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- CollaborationAllowlistEntries|error - Returns a collection of domains that are allowed for collaboration.
postCollaborationWhitelistEntries
function postCollaborationWhitelistEntries(Body55 payload) returns CollaborationAllowlistEntry|error
Add domain to list of allowed collaboration domains
Parameters
- payload Body55 -
Return Type
- CollaborationAllowlistEntry|error - Returns a new entry on the list of allowed domains.
getCollaborationWhitelistEntriesId
function getCollaborationWhitelistEntriesId(string collaboration_whitelist_entry_id) returns CollaborationAllowlistEntry|error
Get allowed collaboration domain
Parameters
- collaboration_whitelist_entry_id string - The ID of the entry in the list.
Return Type
- CollaborationAllowlistEntry|error - Returns an entry on the list of allowed domains.
deleteCollaborationWhitelistEntriesId
function deleteCollaborationWhitelistEntriesId(string collaboration_whitelist_entry_id) returns Response|error
Remove domain from list of allowed collaboration domains
Parameters
- collaboration_whitelist_entry_id string - The ID of the entry in the list.
getCollaborationWhitelistExemptTargets
function getCollaborationWhitelistExemptTargets(string? marker, int? 'limit) returns CollaborationAllowlistExemptTargets|error
List users exempt from collaboration domain restrictions
Parameters
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- CollaborationAllowlistExemptTargets|error - Returns a collection of user exemptions.
postCollaborationWhitelistExemptTargets
function postCollaborationWhitelistExemptTargets(Body56 payload) returns CollaborationAllowlistExemptTarget|error
Create user exemption from collaboration domain restrictions
Parameters
- payload Body56 -
Return Type
- CollaborationAllowlistExemptTarget|error - Returns a new exemption entry.
getCollaborationWhitelistExemptTargetsId
function getCollaborationWhitelistExemptTargetsId(string collaboration_whitelist_exempt_target_id) returns CollaborationAllowlistExemptTarget|error
Get user exempt from collaboration domain restrictions
Parameters
- collaboration_whitelist_exempt_target_id string - The ID of the exemption to the list.
Return Type
- CollaborationAllowlistExemptTarget|error - Returns the user's exempted from the list of collaboration domains.
deleteCollaborationWhitelistExemptTargetsId
function deleteCollaborationWhitelistExemptTargetsId(string collaboration_whitelist_exempt_target_id) returns Response|error
Remove user from list of users exempt from domain restrictions
Parameters
- collaboration_whitelist_exempt_target_id string - The ID of the exemption to the list.
getStoragePolicies
function getStoragePolicies(string[]? fields, string? marker, int? 'limit) returns StoragePolicies|error
List storage policies
Parameters
- fields string[]? (default ()) - 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.
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
- 'limit int? (default ()) - The maximum number of items to return per page.
Return Type
- StoragePolicies|error - Returns a collection of storage policies.
getStoragePoliciesId
function getStoragePoliciesId(string storage_policy_id) returns StoragePolicy|error
Get storage policy
Parameters
- storage_policy_id string - The ID of the storage policy.
Return Type
- StoragePolicy|error - Returns a storage policy object.
getStoragePolicyAssignments
function getStoragePolicyAssignments(string resolvedForType, string resolvedForId, string? marker) returns StoragePolicyAssignments|error
List storage policy assignments
Parameters
- resolvedForType string - The target type to return assignments for
- resolvedForId string - The ID of the user or enterprise to return assignments for
- marker string? (default ()) - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarker
to be set totrue
.
Return Type
- StoragePolicyAssignments|error - Returns a collection of storage policies for the enterprise or user.
postStoragePolicyAssignments
function postStoragePolicyAssignments(Body57 payload) returns StoragePolicyAssignment|error
Assign storage policy
Parameters
- payload Body57 -
Return Type
- StoragePolicyAssignment|error - Returns the new storage policy assignment created.
getStoragePolicyAssignmentsId
function getStoragePolicyAssignmentsId(string storage_policy_assignment_id) returns StoragePolicyAssignment|error
Get storage policy assignment
Parameters
- storage_policy_assignment_id string - The ID of the storage policy assignment.
Return Type
- StoragePolicyAssignment|error - Returns a storage policy assignment object.
putStoragePolicyAssignmentsId
function putStoragePolicyAssignmentsId(string storage_policy_assignment_id, Body58 payload) returns StoragePolicyAssignment|error
Update storage policy assignment
Parameters
- storage_policy_assignment_id string - The ID of the storage policy assignment.
- payload Body58 -
Return Type
- StoragePolicyAssignment|error - Returns an updated storage policy assignment object.
deleteStoragePolicyAssignmentsId
function deleteStoragePolicyAssignmentsId(string storage_policy_assignment_id) returns Response|error
Unassign storage policy
Parameters
- storage_policy_assignment_id string - The ID of the storage policy assignment.
Return Type
postZipDownloads
function postZipDownloads(ZipDownloadRequest payload) returns ZipDownload|error
Create zip download
Parameters
- payload ZipDownloadRequest -
Return Type
- ZipDownload|error - If the
zip
archive is ready to be downloaded, the API will return a response that will include adownload_url
, astatus_url
, as well as any conflicts that might have occurred when creating the request.
getZipDownloadsIdContent
Download zip archive
Parameters
- zip_download_id string - The unique identifier that represent this
zip
archive.
Return Type
getZipDownloadsIdStatus
function getZipDownloadsIdStatus(string zip_download_id) returns ZipDownloadStatus|error
Get zip download status
Parameters
- zip_download_id string - The unique identifier that represent this
zip
archive.
Return Type
- ZipDownloadStatus|error - Returns the status of the
zip
archive that is being downloaded.
Records
boxapi: AccessToken
A token that can be used to make authenticated API calls.
Fields
- access_token string? - The requested access token.
- expires_in int? - The time in seconds in seconds by which this token will expire.
- token_type string? - The type of access token returned.
- restricted_to FileScope[]? - The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources.
- refresh_token string? - The refresh token for this access token, which can be used to request a new access token when the current one expires.
- issued_token_type string? - The type of downscoped access token returned. This is only returned if an access token has been downscoped.
boxapi: AssignedTo
The bare basic reference for an object
Fields
- id string? - The unique identifier for this object
- 'type string? - The type for this object
boxapi: Body
Fields
- name string? - An optional different name for the file. This can be used to rename the file.
- description string? - The description for a file. This can be seen in the right-hand sidebar panel when viewing a file in the Box web app. Additionally, this index is used in the search index of the file, allowing users to find the file by the content in the description.
- parent FilesfileIdParent? - The parent for this item
- shared_link FilesfileIdSharedLink? - Defines a shared link for an item. Set this to
null
to remove the shared link.
- 'lock FilesfileIdLock? - Defines a lock on an item. This prevents the item from being moved, renamed, or otherwise changed by anyone other than the user who created the lock. Set this to
null
to remove the lock.
- permissions FilesfileIdPermissions? - Defines who can download a file.
- tags string[]? - 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.
boxapi: Body1
Fields
- name string? - An optional new name for the file.
- parent FilesfileIdParent? - The parent for this item
boxapi: Body10
Fields
- name string? - The optional new name for this folder.
- description string? - The optional description of this folder
- sync_state string? - Specifies whether a folder should be synced to a user's device or not. This is used by Box Sync (discontinued) and is not used by Box Drive.
- can_non_owners_invite boolean? - Specifies if users who are not the owner of the folder can invite new collaborators to the folder.
- parent FoldersfolderIdParent? - The parent folder for this folder. Use this to move the folder or to restore it out of the trash.
- shared_link record {# The level of access for the shared link. This can be restricted to anyone with the link (`open`), only people within the company (`company`) and only those who have been invited to the folder (`collaborators`). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass the `shared_link` object with no `access` field, for example `{ "shared_link": {} }`. The `company` access level is only available to paid accounts. string access?; # The password required to access the shared link. Set the password to `null` to remove it. A password can only be set when `access` is set to `open`. string password?; # Defines a custom vanity name to use in the shared link URL, for example `https://app.box.com/v/my-shared-link`. Custom URLs should not be used when sharing sensitive content as vanity URLs are a lot easier to guess than regular shared links. string vanity_name?; # The timestamp at which this shared link will expire. This field can only be set by users with paid accounts. string unshared_at?; # The permissions on shared link. record { # If the shared link allows for downloading of files. This can only be set when `access` is set to `open` or `company`. boolean can_download?;} permissions?;} ? -
- folder_upload_email record {# When this parameter has been set, users can email files to the email address that has been automatically created for this folder. To create an email address, set this property either when creating or updating the folder. When set to `collaborators`, only emails from registered email addresses for collaborators will be accepted. This includes any email aliases a user might have registered. When set to `open` it will accept emails from any email address. string access?;} ? -
- tags string[]? - 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.
- is_collaboration_restricted_to_enterprise boolean? - Specifies if new invites to this folder are restricted to users within the enterprise. This does not affect existing collaborations.
- collections Reference[]? - An array of collections to make this folder a member of. Currently we only support the
favorites
collection. To get the ID for a collection, use the [List all collections][1] endpoint. Passing an empty array[]
ornull
will remove the folder from all collections. [1]: ../advanced-files-and-folders/#get-collections
- can_non_owners_view_collaborators boolean? - Restricts collaborators who are not the owner of this folder from viewing other collaborations on this folder. It also restricts non-owners from inviting new collaborators. When setting this field to
false
, it is required to also setcan_non_owners_invite_collaborators
tofalse
if it has not already been set.
boxapi: Body11
Fields
- name string? - An optional new name for the folder.
- parent record {# The ID of parent item string id?;} ? -
boxapi: Body12
Fields
- name string - The name for the new folder. There are some restrictions to the file name. Names containing non-printable ASCII characters, forward and backward slashes (
/
,\
), as well as names with trailing spaces are prohibited. Additionally, the names.
and..
are not allowed either. MISSING[`]
- parent FoldersParent - The parent folder to create the new folder within.
- folder_upload_email record {# When this parameter has been set, users can email files to the email address that has been automatically created for this folder. To create an email address, set this property either when creating or updating the folder. When set to `collaborators`, only emails from registered email addresses for collaborators will be accepted. This includes any email aliases a user might have registered. When set to `open` it will accept emails from any email address. string access?;} ? -
- sync_state string? - Specifies whether a folder should be synced to a user's device or not. This is used by Box Sync (discontinued) and is not used by Box Drive.
boxapi: Body13
Fields
- name string? - An optional new name for the copied folder. There are some restrictions to the file name. Names containing non-printable ASCII characters, forward and backward slashes (
/
,\
), as well as names with trailing spaces are prohibited. Additionally, the names.
and..
are not allowed either. MISSING[`]
- parent FoldersfolderIdcopyParent - The destination folder to copy the folder to.
boxapi: Body14
Fields
- watermark FoldersfolderIdwatermarkWatermark - The watermark to imprint on the folder
boxapi: Body15
Fields
- locked_operations FolderLocksLockedOperations? - The operations to lock for the folder. If
locked_operations
is included in the request, bothmove
anddelete
must also be included and both set totrue
.
- folder FolderLocksFolder - The folder to apply the lock to.
boxapi: Body16
Fields
- message string? - The text of the comment to update
boxapi: Body17
Fields
- message string - The text of the comment. To mention a user, use the
tagged_message
parameter instead.
- tagged_message string? - The text of the comment, including
@[user_id:name]
somewhere in the message to mention another user, which will send them an email notification, letting them know they have been mentioned. Theuser_id
is the target user's ID, where thename
can be any custom phrase. In the Box UI this name will link to the user's profile. If you are not mentioning another user, usemessage
instead.
- item CommentsItem? - The item to attach the comment to.
boxapi: Body18
Fields
- role string - The level of access granted.
- status string? - <!--alex ignore reject--> Set the status of a `pending` collaboration invitation, effectively accepting, or rejecting the invite.
- expires_at string? - Update the expiration date for the collaboration. At this date, the collaboration will be automatically removed from the item. This feature will only work if the Automatically remove invited collaborators: Allow folder owners to extend the expiry date setting has been enabled in the Enterprise Settings of the Admin Console. When the setting is not enabled, collaborations can not have an expiry date and a value for this field will be result in an error. Additionally, a collaboration can only be given an expiration if it was created after the Automatically remove invited collaborator setting was enabled.
- can_view_path boolean? - Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's All Files page. We recommend you limit the number of collaborations with
can_view_path
enabled to 1,000 per user.
boxapi: Body19
Fields
- item CollaborationsItem - The item to attach the comment to.
- accessible_by CollaborationsAccessibleBy - The user or group to give access to the item.
- role string - The level of access granted.
- can_view_path boolean? - Determines if the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore can not see content the user is not collaborated on. Be aware that this meaningfully increases the time required to load the invitee's All Files page. We recommend you limit the number of collaborations with
can_view_path
enabled to 1,000 per user.
- expires_at string? - Set the expiration date for the collaboration. At this date, the collaboration will be automatically removed from the item. This feature will only work if the Automatically remove invited collaborators: Allow folder owners to extend the expiry date setting has been enabled in the Enterprise Settings of the Admin Console. When the setting is not enabled, collaborations can not have an expiry date and a value for this field will be result in an error.
boxapi: Body2
Fields
- attributes FilesfileIdcontentAttributes - The additional attributes of the file being uploaded. Mainly the name and the parent folder. These attributes are part of the multi part request body and are in JSON format. <Message warning> The
attributes
part of the body must come before thefile
part. Requests that do not follow this format when uploading the file will receive a HTTP400
error with ametadata_after_file_contents
error code. </Message>
- file string - The content of the file to upload to Box. <Message warning> The
attributes
part of the body must come before thefile
part. Requests that do not follow this format when uploading the file will receive a HTTP400
error with ametadata_after_file_contents
error code. </Message>
boxapi: Body20
Fields
- item TasksItem - The file to attach the task to.
- action string? - The action the task assignee will be prompted to do. Must be *
review
defines an approval task that can be approved or rejected *complete
defines a general task which can be completed
- message string? - An optional message to include with the task.
- due_at string? - Defines when the task is due. Defaults to
null
if not provided.
- completion_rule string? - Defines which assignees need to complete this task before the task is considered completed. *
all_assignees
(default) requires all assignees to review or approve the the task in order for it to be considered completed. *any_assignee
accepts any one assignee to review or approve the the task in order for it to be considered completed.
boxapi: Body21
Fields
- action string? - The action the task assignee will be prompted to do. Must be *
review
defines an approval task that can be approved or rejected *complete
defines a general task which can be completed
- message string? - The message included with the task.
- due_at string? - When the task is due at.
- completion_rule string? - Defines which assignees need to complete this task before the task is considered completed. *
all_assignees
(default) requires all assignees to review or approve the the task in order for it to be considered completed. *any_assignee
accepts any one assignee to review or approve the the task in order for it to be considered completed.
boxapi: Body22
Fields
- task TaskAssignmentsTask - The task to assign to a user.
- assign_to TaskAssignmentsAssignTo - The user to assign the task to.
boxapi: Body23
Fields
- message string? - An optional message by the assignee that can be added to the task.
- resolution_state string? - The state of the task assigned to the user. * For a task with an
action
value ofcomplete
this can beincomplete
orcompleted
. * For a task with anaction
ofreview
this can beincomplete
,approved
, orrejected
.
boxapi: Body24
Fields
- shared_link FilesfileIdaddSharedLinkSharedLink? - The settings for the shared link to create on the file. Use an empty object (
{}
) to use the default settings for shared links.
boxapi: Body25
Fields
- shared_link FilesfileIdupdateSharedLinkSharedLink? - The settings for the shared link to update.
boxapi: Body26
Fields
- shared_link record {} ? - By setting this value to
null
, the shared link is removed from the file.
boxapi: Body27
Fields
- shared_link FoldersfolderIdaddSharedLinkSharedLink? - The settings for the shared link to create on the folder. Use an empty object (
{}
) to use the default settings for shared links.
boxapi: Body28
Fields
- shared_link FoldersfolderIdupdateSharedLinkSharedLink? - The settings for the shared link to update.
boxapi: Body29
Fields
- shared_link record {} ? - By setting this value to
null
, the shared link is removed from the folder.
boxapi: Body3
Fields
- attributes FilescontentAttributes - The additional attributes of the file being uploaded. Mainly the name and the parent folder. These attributes are part of the multi part request body and are in JSON format. <Message warning> The
attributes
part of the body must come before thefile
part. Requests that do not follow this format when uploading the file will receive a HTTP400
error with ametadata_after_file_contents
error code. </Message>
- file string - The content of the file to upload to Box. <Message warning> The
attributes
part of the body must come before thefile
part. Requests that do not follow this format when uploading the file will receive a HTTP400
error with ametadata_after_file_contents
error code. </Message>
boxapi: Body30
Fields
- url string - The URL that this web link links to. Must start with
"http://"
or"https://"
.
- parent WebLinksParent - The parent folder to create the web link within.
- name string? - Name of the web link. Defaults to the URL if not set.
- description string? - Description of the web link.
boxapi: Body31
Fields
- url string? - The new URL that the web link links to. Must start with
"http://"
or"https://"
.
- parent record {# The ID of parent item string id?;} ? -
- name string? - A new name for the web link. Defaults to the URL if not set.
- description string? - A new description of the web link.
boxapi: Body32
Fields
- name string? - An optional new name for the web link.
- parent record {# The ID of parent item string id?;} ? -
boxapi: Body33
Fields
- name string - The name of the user
- login string? - The email address the user uses to log in Required, unless
is_platform_access_only
is set totrue
.
- is_platform_access_only boolean? - Specifies that the user is an app user.
- role string? - The user’s enterprise role
- is_sync_enabled boolean? - Whether the user can use Box Sync
- job_title string? - The user’s job title
- phone string? - The user’s phone number
- address string? - The user’s address
- space_amount int? - The user’s total available space in bytes. Set this to
-1
to indicate unlimited storage.
- tracking_codes string[]? - Tracking codes allow an admin to generate reports from the admin console and assign an attribute to a specific group of users. This setting must be enabled for an enterprise before it can be used.
- can_see_managed_users boolean? - Whether the user can see other enterprise users in their contact list
- timezone string? - The user's timezone
- is_external_collab_restricted boolean? - Whether the user is allowed to collaborate with users outside their enterprise
- is_exempt_from_device_limits boolean? - Whether to exempt the user from enterprise device limits
- is_exempt_from_login_verification boolean? - Whether the user must use two-factor authentication
- status string? - The user's account status
- external_app_user_id string? - An external identifier for an app user, which can be used to look up the user. This can be used to tie user IDs from external identity providers to Box users.
boxapi: Body34
Fields
- enterprise string? - Set this to
null
to roll the user out of the enterprise and make them a free user
- notify boolean? - Whether the user should receive an email when they are rolled out of an enterprise
- name string? - The name of the user
- login string? - The email address the user uses to log in
- role string? - The user’s enterprise role
- is_sync_enabled boolean? - Whether the user can use Box Sync
- job_title string? - The user’s job title
- phone string? - The user’s phone number
- address string? - The user’s address
- tracking_codes string[]? - Tracking codes allow an admin to generate reports from the admin console and assign an attribute to a specific group of users. This setting must be enabled for an enterprise before it can be used.
- can_see_managed_users boolean? - Whether the user can see other enterprise users in their contact list
- timezone string? - The user's timezone
- is_external_collab_restricted boolean? - Whether the user is allowed to collaborate with users outside their enterprise
- is_exempt_from_device_limits boolean? - Whether to exempt the user from enterprise device limits
- is_exempt_from_login_verification boolean? - Whether the user must use two-factor authentication
- is_password_reset_required boolean? - Whether the user is required to reset their password
- status string? - The user's account status
- space_amount int? - The user’s total available space in bytes. Set this to
-1
to indicate unlimited storage.
- notification_email UsersuserIdNotificationEmail? - An alternate notification email address to which email notifications are sent. When it's confirmed, this will be the email address to which notifications are sent instead of to the primary email address. Set this value to
null
to remove the notification email.
boxapi: Body35
Fields
- owned_by UsersuserIdfolders0OwnedBy - The user who the folder will be transferred to
boxapi: Body36
Fields
- email string - The email address to add to the account as an alias.
boxapi: Body37
Fields
- enterprise InvitesEnterprise - The enterprise to invite the user to
- actionable_by InvitesActionableBy - The user to invite
boxapi: Body38
Fields
- name string - The name of the new group to be created. This name must be unique within the enterprise.
- provenance string? - Keeps track of which external source this group is coming, for example
Active Directory
, orOkta
. Setting this will also prevent Box admins from editing the group name and its members directly via the Box web application. This is desirable for one-way syncing of groups.
- external_sync_identifier string? - An arbitrary identifier that can be used by external group sync tools to link this Box Group to an external group. Example values of this field could be an Active Directory Object ID or a Google Group ID. We recommend you use of this field in order to avoid issues when group names are updated in either Box or external systems.
- description string? - A human readable description of the group.
- invitability_level string? - Specifies who can invite the group to collaborate on folders. When set to
admins_only
the enterprise admin, co-admins, and the group's admin can invite the group. When set toadmins_and_members
all the admins listed above and group members can invite the group. When set toall_managed_users
all managed users in the enterprise can invite the group.
- member_viewability_level string? - Specifies who can see the members of the group. *
admins_only
- the enterprise admin, co-admins, group's group admin *admins_and_members
- all admins and group members *all_managed_users
- all managed users in the enterprise
boxapi: Body39
Fields
- name string? - The name of the new group to be created. Must be unique within the enterprise.
- provenance string? - Keeps track of which external source this group is coming, for example
Active Directory
, orOkta
. Setting this will also prevent Box admins from editing the group name and its members directly via the Box web application. This is desirable for one-way syncing of groups.
- external_sync_identifier string? - An arbitrary identifier that can be used by external group sync tools to link this Box Group to an external group. Example values of this field could be an Active Directory Object ID or a Google Group ID. We recommend you use of this field in order to avoid issues when group names are updated in either Box or external systems.
- description string? - A human readable description of the group.
- invitability_level string? - Specifies who can invite the group to collaborate on folders. When set to
admins_only
the enterprise admin, co-admins, and the group's admin can invite the group. When set toadmins_and_members
all the admins listed above and group members can invite the group. When set toall_managed_users
all managed users in the enterprise can invite the group.
- member_viewability_level string? - Specifies who can see the members of the group. *
admins_only
- the enterprise admin, co-admins, group's group admin *admins_and_members
- all admins and group members *all_managed_users
- all managed users in the enterprise
boxapi: Body4
Fields
- folder_id string - The ID of the folder to upload the new file to.
- file_size int - The total number of bytes of the file to be uploaded
- file_name string - The name of new file
boxapi: Body40
Fields
- user GroupMembershipsUser - The user to add to the group.
- 'group GroupMembershipsGroup - The group to add the user to.
- role string? - The role of the user in the group.
- configurable_permissions record {} ? - Custom configuration for the permissions an admin if a group will receive. This option has no effect on members with a role of
member
. Setting these permissions overwrites the default access levels of an admin. Specifying a value of "null" for this object will disable all configurable permissions. Specifying permissions will set them accordingly, omitted permissions will be enabled by default.
boxapi: Body41
Fields
- role string? - The role of the user in the group.
- configurable_permissions record {} ? - Custom configuration for the permissions an admin if a group will receive. This option has no effect on members with a role of
member
. Setting these permissions overwrites the default access levels of an admin. Specifying a value of "null" for this object will disable all configurable permissions. Specifying permissions will set them accordingly, omitted permissions will be enabled by default.
boxapi: Body42
Fields
- target WebhooksTarget - The item that will trigger the webhook
- address string - The URL that is notified by this webhook
- triggers string[] - An array of event names that this webhook is to be triggered for
boxapi: Body43
Fields
- target WebhooksTarget? - The item that will trigger the webhook
- address string? - The URL that is notified by this webhook
- triggers string[]? - An array of event names that this webhook is to be triggered for
boxapi: Body44
Fields
- status string - Defines the status of this invocation. Set this to
success
when setting Skill cards.
- metadata SkillInvocationsskillIdMetadata - The metadata to set for this skill. This is a list of Box Skills cards. These cards will overwrite any existing Box skill cards on the file.
- file SkillInvocationsskillIdFile - The file to assign the cards to.
- file_version SkillInvocationsskillIdFileVersion? - The optional file version to assign the cards to.
- usage SkillInvocationsskillIdUsage? - A descriptor that defines what items are affected by this call. Set this to the default values when setting a card to a
success
state, and leave it out in most other situations.
boxapi: Body45
Fields
- policy_name string - The name for the retention policy
- policy_type string - The type of the retention policy. A retention policy type can either be
finite
, where a specific amount of time to retain the content is known upfront, orindefinite
, where the amount of time to retain the content is still unknown.
- disposition_action string - The disposition action of the retention policy. This action can be
permanently_delete
, which will cause the content retained by the policy to be permanently deleted, orremove_retention
, which will lift the retention policy from the content, allowing it to be deleted by users, once the retention policy has expired.
- retention_length string? - The length of the retention policy. This length specifies the duration in days that the retention policy will be active for after being assigned to content. If the policy has A
policy_type
ofindefinite
, theretention_length
will also beindefinite
.
- can_owner_extend_retention boolean? - Whether the owner of a file will be allowed to extend the retention.
- are_owners_notified boolean? - Whether owner and co-owners of a file are notified when the policy nears expiration.
- custom_notification_recipients RetentionPoliciesCustomNotificationRecipients[]? -
boxapi: Body46
Fields
- policy_name string? - The name for the retention policy
- disposition_action string? - The disposition action of the retention policy. This action can be
permanently_delete
, which will cause the content retained by the policy to be permanently deleted, orremove_retention
, which will lift the retention policy from the content, allowing it to be deleted by users, once the retention policy has expired.
- status string? - Used to retire a retention policy. If not retiring a policy, do not include this parameter or set it to
null
.
boxapi: Body47
Fields
- policy_id string - The ID of the retention policy to assign
- assign_to RetentionPolicyAssignmentsAssignTo - The item to assign the policy to
boxapi: Body48
Fields
- policy_name string - The name of the policy.
- description string? - A description for the policy.
- filter_started_at string? - The filter start date. When this policy is applied using a
custodian
legal hold assignments, it will only apply to file versions created or uploaded inside of the date range. Other assignment types, such as folders and files, will ignore the date filter. Required ifis_ongoing
is set tofalse
.
- filter_ended_at string? - The filter end date. When this policy is applied using a
custodian
legal hold assignments, it will only apply to file versions created or uploaded inside of the date range. Other assignment types, such as folders and files, will ignore the date filter. Required ifis_ongoing
is set tofalse
.
- is_ongoing boolean? - Whether new assignments under this policy should continue applying to files even after initialization. When this policy is applied using a legal hold assignment, it will continue applying the policy to any new file versions even after it has been applied. For example, if a legal hold assignment is placed on a user today, and that user uploads a file tomorrow, that file will get held. This will continue until the policy is retired. Required if no filter dates are set.
boxapi: Body49
Fields
- policy_name string? - The name of the policy.
- description string? - A description for the policy.
- release_notes string? - Notes around why the policy was released.
boxapi: Body5
Fields
- file_size int - The total number of bytes of the file to be uploaded
- file_name string? - The optional new name of new file
boxapi: Body50
Fields
- policy_id string - The ID of the policy to assign.
- assign_to LegalHoldPolicyAssignmentsAssignTo - The item to assign the policy to
boxapi: Body51
Fields
- status string - Whether this terms of service is active.
- tos_type string? - The type of user to set the terms of service for.
- text string - The terms of service text to display to users. The text can be set to empty if the
status
is set todisabled
.
boxapi: Body52
Fields
- status string - Whether this terms of service is active.
- text string - The terms of service text to display to users. The text can be set to empty if the
status
is set todisabled
.
boxapi: Body53
Fields
- tos TermsOfServiceUserStatusesTos - The terms of service to set the status for.
- user TermsOfServiceUserStatusesUser - The user to set the status for.
- is_accepted boolean - Whether the user has accepted the terms.
boxapi: Body54
Fields
- is_accepted boolean - Whether the user has accepted the terms.
boxapi: Body55
Fields
- domain string - The domain to add to the list of allowed domains.
- direction string - The direction in which to allow collaborations.
boxapi: Body56
Fields
- user CollaborationWhitelistExemptTargetsUser - The user to exempt.
boxapi: Body57
Fields
- storage_policy StoragePolicyAssignmentsStoragePolicy - The storage policy to assign to the user or enterprise
- assigned_to StoragePolicyAssignmentsAssignedTo - The user or enterprise to assign the storage policy to.
boxapi: Body58
Fields
- storage_policy StoragePolicyAssignmentsStoragePolicy - The storage policy to assign to the user or enterprise
boxapi: Body6
Fields
- parts UploadPart[] - The list details for the uploaded parts
boxapi: Body7
Fields
- name string? - An optional new name for the copied file. There are some restrictions to the file name. Names containing non-printable ASCII characters, forward and backward slashes (
/
,\
), and protected names like.
and..
are automatically sanitized by removing the non-allowed characters. MISSING[`]
- 'version string? - An optional ID of the specific file version to copy.
- parent FilesfileIdcopyParent - The destination folder to copy the file to.
boxapi: Body8
The file version to revert to
Fields
- id string? - The file version ID
- 'type string? - The type to revert to
boxapi: Body9
Fields
- watermark FilesfileIdwatermarkWatermark - The watermark to imprint on the file
boxapi: ClassificationTemplate
A metadata template that holds the security classifications defined by an enterprise.
Fields
- id string? - The ID of the classification template.
- 'type string? -
metadata_template
- scope string? - The scope of the classification template. This is in the format
enterprise_{id}
where theid
is the enterprise ID.
- templateKey string? -
securityClassification-6VMVochwUWo
- displayName string? - The name of this template as shown in web and mobile interfaces.
- hidden boolean? - This template is always available in web and mobile interfaces.
- copyInstanceOnItemCopy boolean? - Classifications are always copied along when the file or folder is copied.
- fields ClassificationtemplateFields[]? - A list of fields for this classification template. This includes only one field, the
Box__Security__Classification__Key
, which defines the different classifications available in this enterprise.
boxapi: ClassificationtemplateFields
The metadata template field that represents the available classifications.
Fields
- id string? - The unique ID of the field.
- 'type string? -
enum
- 'key string? -
Box__Security__Classification__Key
- displayName string? -
Classification
- hidden boolean? - Classifications are always visible to web and mobile users.
- options ClassificationtemplateOptions[]? - A list of classifications available in this enterprise.
boxapi: ClassificationtemplateOptions
A single classification available in this enterprise.
Fields
- id string? - The unique ID of this classification.
- 'key string? - The display name and key for this classification.
- staticConfig ClassificationtemplateStaticconfig? - Additional information about the classification.
boxapi: ClassificationtemplateStaticconfig
Additional information about the classification.
Fields
- classification ClassificationtemplateStaticconfigClassification? - Additional information about the classification. This is not an exclusive list of properties, and more object fields might be returned. These fields are used for internal Box Shield and Box Governance purposes and no additional value must be derived from these fields.
boxapi: ClassificationtemplateStaticconfigClassification
Additional information about the classification. This is not an exclusive list of properties, and more object fields might be returned. These fields are used for internal Box Shield and Box Governance purposes and no additional value must be derived from these fields.
Fields
- classificationDefinition string? - A longer description of the classification.
- colorID decimal? - An internal Box identifier used to assign a color to a classification label. Mapping between a
colorID
and a color may change without notice. Currently, the color mappings are as follows. *0
: Yellow *1
: Orange *2
: Watermelon red *3
: Purple rain *4
: Light blue *5
: Dark blue *6
: Light green *7
: Gray
boxapi: ClientConfig
Configuration record for Box platform
Fields
- authConfig BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Basic authentication or CredentialsConfig Configuration Tokens
- secureSocketConfig ClientSecureSocket? - Secure Socket Configuration
boxapi: ClientError
A generic error
Fields
- 'type string? -
error
- status int? - The HTTP status of the response.
- code string? - A Box-specific error code
- message string? - A short message describing the error.
- context_info ClienterrorContextInfo? - A free-form object that contains additional context about the error. The possible fields are defined on a per-endpoint basis.
- help_url string? - A URL that links to more information about why this error occurred.
- request_id string? - A unique identifier for this response, which can be used when contacting Box support.
boxapi: ClienterrorContextInfo
A free-form object that contains additional context about the error. The possible fields are defined on a per-endpoint basis.
Fields
- conflicts FileConflict[]? - A list of the file conflicts that caused this error.
boxapi: Collaboration
Collaborations define access permissions for users and groups to files and folders, similar to access control lists. A collaboration object grants a user or group access to a file or folder with permissions defined by a specific role.
Fields
- id string? - The unique identifier for this collaboration.
- 'type string? -
collaboration
- accessible_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- invite_email string? - The email address used to invite an unregistered collaborator, if they are not a registered user.
- role string? - The level of access granted.
- expires_at string? - When the collaboration will expire, or
null
if no expiration date is set.
- status string? - The status of the collaboration invitation.
- acknowledged_at string? - When the
status
of the collaboration object changed toaccepted
orrejected
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- created_at string? - When the collaboration object was created
- modified_at string? - When the collaboration object was last modified
- acceptance_requirements_status CollaborationAcceptanceRequirementsStatus? - The terms of service that must be accepted before the collaboration can be accepted.
boxapi: CollaborationAcceptanceRequirementsStatus
The terms of service that must be accepted before the collaboration can be accepted.
Fields
- terms_of_service_requirement CollaborationAcceptanceRequirementsStatusTermsOfServiceRequirement? -
- strong_password_requirement CollaborationAcceptanceRequirementsStatusStrongPasswordRequirement? -
- two_factor_authentication_requirement CollaborationAcceptanceRequirementsStatusTwoFactorAuthenticationRequirement? -
boxapi: CollaborationAcceptanceRequirementsStatusStrongPasswordRequirement
Fields
- enterprise_has_strong_password_required_for_external_users boolean? - Whether or not the enterprise that owns the content requires a strong password to collaborate on the content.
- user_has_strong_password boolean? - Whether or not the user has a strong password set for their account. The field is
null
when a strong password is not required.
boxapi: CollaborationAcceptanceRequirementsStatusTermsOfServiceRequirement
Fields
- is_accepted boolean? - Whether or not the terms of service have been accepted. The field is
null
when there is no terms of service required.
- terms_of_service record {*TermsofserviceMini;} ? -
boxapi: CollaborationAcceptanceRequirementsStatusTwoFactorAuthenticationRequirement
Fields
- enterprise_has_two_factor_auth_enabled boolean? - Whether or not the enterprise that owns the content requires two-factor authentication to be enabled in order to collaborate on the content.
- user_has_two_factor_authentication_enabled boolean? - Whether or not the user has two-factor authentication enabled. The field is
null
when two-factor authentication is not required.
boxapi: CollaborationAllowlistEnterprise
A representation of a Box enterprise
Fields
- id string? - The unique identifier for this enterprise.
- 'type string? -
enterprise
- name string? - The name of the enterprise
boxapi: CollaborationAllowlistEntries
A list of allowed domains for collaboration.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: CollaborationAllowlistEntry
An entry that describes an approved domain for which users can collaborate with files and folders in your enterprise or vice versa.
Fields
- id string? - The unique identifier for this entry
- 'type string? -
collaboration_whitelist_entry
- domain string? - The whitelisted domain
- direction string? - The direction of the collaborations to allow.
- enterprise CollaborationAllowlistEnterprise? - A representation of a Box enterprise
- created_at string? - The time the entry was created at
boxapi: CollaborationAllowlistExemptTarget
The user that is exempt from any of the restrictions imposed by the list of allowed collaboration domains for this enterprise.
Fields
- id string? - The unique identifier for this exemption
- 'type string? -
collaboration_whitelist
- enterprise CollaborationAllowlistEnterprise? - A representation of a Box enterprise
- user CollaborationAllowlistUser? - A representation of a Box enterprise
- created_at string? - The time the entry was created
- modified_at string? - The time the entry was modified
boxapi: CollaborationAllowlistExemptTargets
A list of users that is exempt from any of the restrictions imposed by the list of allowed collaboration domains for this enterprise.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: CollaborationAllowlistUser
A representation of a Box enterprise
Fields
- id string? - The unique identifier for this enterprise.
- 'type string? -
enterprise
- name string? - The name of the enterprise
boxapi: Collaborations
A list of collaborations
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: CollaborationsAccessibleBy
The user or group to give access to the item.
Fields
- 'type string - The type of collaborator to invite.
- id string? - The ID of the user or group. Alternatively, use
login
to specify a user by email address.
- login string? - The email address of the user to grant access to the item. Alternatively, use
id
to specify a user by user ID.
boxapi: CollaborationsItem
The item to attach the comment to.
Fields
- 'type string - The type of the item that this collaboration will be granted access to
- id string - The ID of the item that will be granted access to
boxapi: CollaborationsOrder
The order in which a pagination is ordered
Fields
- 'by string? - The field to order by
- direction string? - The direction to order by, either ascending or descending
boxapi: CollaborationWhitelistExemptTargetsUser
The user to exempt.
Fields
- id string - The ID of the user to exempt.
boxapi: Collection
A collection of items, including files and folders. Currently, the only collection available is the favorites
collection. The contents of a collection can be explored in a similar way to which the contents of a folder is explored.
Fields
- id string? - The unique identifier for this collection.
- 'type string? -
collection
- name string? - The name of the collection.
- collection_type string? - The type of the collection. This is used to determine the proper visual treatment for collections.
boxapi: Collections
A list of collections
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: Comment
Standard representation of a comment.
Fields
- Fields Included from *CommentBase
boxapi: CommentBase
Base representation of a comment.
Fields
- id string? - The unique identifier for this comment.
- 'type string? -
comment
boxapi: CommentFull
Comments are messages created on files. Comments can be made independently or created as responses to other comments
Fields
- Fields Included from *Comment
boxapi: Comments
A list of comments
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: CommentsItem
The item to attach the comment to.
Fields
- id string - The ID of the item
- 'type string - The type of the item that this comment will be placed on.
boxapi: ConflictError
The error that occurs when a file can not be created due to a conflict.
Fields
- Fields Included from *ClientError
boxapi: ConflicterrorContextInfo
Fields
- conflicts FileConflict[]? - A list of the file conflicts that caused this error.
boxapi: DevicePinner
Device pins allow enterprises to control what devices can use native Box applications.
Fields
- id string? - The unique identifier for this device pin.
- 'type string? -
device_pinner
- owned_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- product_name string? - The type of device being pinned
- created_at string? - The time the device pin was created
- modified_at string? - The time the device pin was modified
boxapi: DevicePinners
A list of device pins
Fields
- entries DevicePinner[]? - A entries of device pins
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed.
- next_marker int? - The marker for the start of the next page of results.
- 'order DevicepinnersOrder[]? - The order by which items are returned.
boxapi: DevicepinnersOrder
The order in which a pagination is ordered
Fields
- 'by string? - The field that is ordered by
- direction string? - The direction to order by, either ascending or descending
boxapi: EmailAlias
An email alias for a user.
Fields
- id string? - The unique identifier for this object
- 'type string? - Email alias type
- email string? - The email address
- is_confirmed boolean? - Whether the email address has been confirmed
boxapi: EmailAliases
A list of email aliases
Fields
- total_count int? - The number of email aliases.
- entries EmailAlias[]? - The entries of email alias.
boxapi: Enterprise
A representation of a Box enterprise
Fields
- id string? - The unique identifier for this enterprise.
- 'type string? -
enterprise
- name string? - The name of the enterprise
boxapi: Event
The description of an event that happened within Box
Fields
- 'type string? -
event
- event_id string? - The ID of the event object. You can use this to detect duplicate events
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- event_type string? - An event type that can trigger an event
- session_id string? - The session of the user that performed the action. Not all events will populate this attribute.
- 'source User|EventSource? -
- additional_details record {} ? - This object provides additional information about the event if available. This can include how a user performed an event as well as additional information to correlate an event to external KeySafe logs. Not all events have an
additional_details
object. This object is only available in the Enterprise Events.
boxapi: Events
A list of event objects
Fields
- chunk_size int? - The number of events returned in this response.
- next_stream_position string? - The stream position of the start of the next page (chunk) of events.
- entries Event[]? - The description of an events that happened within Box.
boxapi: EventSource
The source file or folder that triggered an event in the event stream.
Fields
- item_type string? - The type of the item that the event represents. Can be
file
orfolder
.
- item_id string? - The unique identifier that represents the item.
- item_name string? - The name of the item.
- parent FolderMini? - A mini representation of a file version, used when nested under another resource.
- owned_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
boxapi: File
A standard representation of a file, as returned from any file API endpoints by default
Fields
- Fields Included from *FileMini
boxapi: FileBase
The bare basic representation of a file, the minimal amount of fields returned when using the fields
query parameter.
Fields
- id string? - 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
thefile_id
is123
.
- etag string? - The HTTP
etag
of this file. This can be used within some API endpoints in theIf-Match
andIf-None-Match
headers to only perform changes on the file if (no) changes have happened.
- 'type string? -
file
boxapi: FileConflict
A representation of a file that is used to show
Fields
- Fields Included from *FileMini
boxapi: FileFull
A full representation of a file, as can be returned from any file API endpoints by default
Fields
- Fields Included from *File
boxapi: FileMini
A mini representation of a file, used when nested under another resource.
Fields
- Fields Included from *FileBase
boxapi: FileRequest
A standard representation of a file request, as returned from any file request API endpoints by default.
Fields
- id string? - The unique identifier for this file request.
- 'type string? -
file-request
- title string? - The title of file request. This is shown in the Box UI to users uploading files. This defaults to title of the file request that was copied to create this file request.
- description string? - The optional description of this file request. This is shown in the Box UI to users uploading files. This defaults to description of the file request that was copied to create this file request.
- status string? - The status of the file request. This defaults to
active
. When the status is set toinactive
, the file request will no longer accept new submissions, and any visitor to the file request URL will receive aHTTP 404
status code. This defaults to status of file request that was copied to create this file request.
- is_email_required boolean? - Whether a file request submitter is required to provide their email address. When this setting is set to true, the Box UI will show an email field on the file request form. This defaults to setting of file request that was copied to create this file request.
- is_description_required boolean? - Whether a file request submitter is required to provide a description of the files they are submitting. When this setting is set to true, the Box UI will show a description field on the file request form. This defaults to setting of file request that was copied to create this file request.
- expires_at string? - The date after which a file request will no longer accept new submissions. After this date, the
status
will automatically be set toinactive
.
- folder FolderMini? - A mini representation of a file version, used when nested under another resource.
- url string? - The generated URL for this file request. This URL can be shared with users to let them upload files to the associated folder.
- etag string? - The HTTP
etag
of this file. This can be used in combination with theIf-Match
header when updating a file request. By providing that header, a change will only be performed on the file request if theetag
on the file request still matches theetag
provided in theIf-Match
header.
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- created_at string? - The date and time when the file request was created.
- updated_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- updated_at string? - The date and time when the file request was last updated.
boxapi: FileRequestCopyRequest
The request body to copy a file request.
Fields
- Fields Included from *FileRequestUpdateRequest
boxapi: FilerequestcopyrequestFolder
The folder to associate the new file request to.
Fields
- 'type string? -
folder
- id string - The ID of the folder to associate the new file request to.
boxapi: FileRequestUpdateRequest
The request body to update a file request.
Fields
- title string? - An optional new title for the file request. This can be used to change the title of the file request. This will default to the value on the existing file request.
- description string? - An optional new description for the file request. This can be used to change the description of the file request. This will default to the value on the existing file request.
- status string? - An optional new status of the file request. When the status is set to
inactive
, the file request will no longer accept new submissions, and any visitor to the file request URL will receive aHTTP 404
status code. This will default to the value on the existing file request.
- is_email_required boolean? - Whether a file request submitter is required to provide their email address. When this setting is set to true, the Box UI will show an email field on the file request form. This will default to the value on the existing file request.
- is_description_required boolean? - Whether a file request submitter is required to provide a description of the files they are submitting. When this setting is set to true, the Box UI will show a description field on the file request form. This will default to the value on the existing file request.
- expires_at string? - The date after which a file request will no longer accept new submissions. After this date, the
status
will automatically be set toinactive
. This will default to the value on the existing file request.
boxapi: Files
A list of files
Fields
- total_count int? - The number of files.
- entries File[]? - A list of files
boxapi: FilescontentAttributes
The additional attributes of the file being uploaded. Mainly the name and the parent folder. These attributes are part of the multi part request body and are in JSON format. attributes
part of the body must come before the file
part. Requests that do not follow this format when uploading the file will receive a HTTP 400
error with a metadata_after_file_contents
error code.
Fields
- name string - The name of the file
- parent FilescontentAttributesParent - The parent folder to upload the file to
- content_created_at string? - Defines the time the file was originally created at. If not set, the upload time will be used.
- content_modified_at string? - Defines the time the file was last modified at. If not set, the upload time will be used.
boxapi: FilescontentAttributesParent
The parent folder to upload the file to
Fields
- id string - The id of the parent folder. Use
0
for the user's root folder.
boxapi: FileScope
A relation between a file and the scopes for which the file can be accessed
Fields
- scope string? - The file scopes for the file access
- 'object FileMini? - A mini representation of a file, used when nested under another resource.
boxapi: FilesfileIdaddSharedLinkSharedLink
The settings for the shared link to create on the file. Use an empty object ({}
) to use the default settings for shared links.
Fields
- access string? - The level of access for the shared link. This can be restricted to anyone with the link (
open
), only people within the company (company
) and only those who have been invited to the file (collaborators
). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass theshared_link
object with noaccess
field, for example{ "shared_link": {} }
. Thecompany
access level is only available to paid accounts.
- password string? - The password required to access the shared link. Set the password to
null
to remove it. A password can only be set whenaccess
is set toopen
.
- vanity_name string? - Defines a custom vanity name to use in the shared link URL, for example
https://app.box.com/v/my-shared-link
. Custom URLs should not be used when sharing sensitive content as vanity URLs are a lot easier to guess than regular shared links.
- unshared_at string? - The timestamp at which this shared link will expire. This field can only be set by users with paid accounts. The value must be greater than the current date and time.
- permissions FilesfileIdaddSharedLinkSharedLinkPermissions? - The permissions on shared link.
boxapi: FilesfileIdaddSharedLinkSharedLinkPermissions
The permissions on shared link.
Fields
- can_download boolean? - If the shared link allows for downloading of files. This can only be set when
access
is set toopen
orcompany
.
boxapi: FilesfileIdcontentAttributes
The additional attributes of the file being uploaded. Mainly the name and the parent folder. These attributes are part of the multi part request body and are in JSON format. attributes
part of the body must come before the file
part. Requests that do not follow this format when uploading the file will receive a HTTP 400
error with a metadata_after_file_contents
error code.
Fields
- name string - An optional new name for the file. If specified, the file will be renamed when the new version is uploaded.
- content_modified_at string? - Defines the time the file was last modified at. If not set, the upload time will be used.
boxapi: FilesfileIdcopyParent
The destination folder to copy the file to.
Fields
- id string - The ID of folder to copy the file to.
boxapi: FilesfileIdLock
Defines a lock on an item. This prevents the item from being moved, renamed, or otherwise changed by anyone other than the user who created the lock. Set this to null
to remove the lock.
Fields
- access string? - The type of this object.
- expires_at string? - Defines the time at which the lock expires.
- is_download_prevented boolean? - Defines if the file can be downloaded while it is locked.
boxapi: FilesfileIdParent
The parent for this item
Fields
- id string? - The ID of parent item
boxapi: FilesfileIdPermissions
Defines who can download a file.
Fields
- can_download string? - Defines who is allowed to download this file. The possible values are either
open
for everyone orcompany
for the other members of the user's enterprise. This setting overrides the download permissions that are normally part of therole
of a collaboration. When set tocompany
, this essentially removes the download option for external users withviewer
oreditor
a roles.
boxapi: FilesfileIdSharedLink
Defines a shared link for an item. Set this to null
to remove the shared link.
Fields
- access string? - The level of access for the shared link. This can be restricted to anyone with the link (
open
), only people within the company (company
) and only those who have been invited to the folder (collaborators
). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass theshared_link
object with noaccess
field, for example{ "shared_link": {} }
. Thecompany
access level is only available to paid accounts.
- password string? - The password required to access the shared link. Set the password to
null
to remove it. A password can only be set whenaccess
is set toopen
.
- vanity_name string? - Defines a custom vanity name to use in the shared link URL, for example
https://app.box.com/v/my-shared-link
. Custom URLs should not be used when sharing sensitive content as vanity URLs are a lot easier to guess than regular shared links.
- unshared_at string? - The timestamp at which this shared link will expire. This field can only be set by users with paid accounts.
- permissions FilesfileIdSharedLinkPermissions? - The permissions for the shared link.
boxapi: FilesfileIdSharedLinkPermissions
The permissions for the shared link.
Fields
- can_download boolean? - If the shared link allows for downloading of files. This can only be set when
access
is set toopen
orcompany
.
boxapi: FilesfileIdupdateSharedLinkSharedLink
The settings for the shared link to update.
Fields
- access string? - The level of access for the shared link. This can be restricted to anyone with the link (
open
), only people within the company (company
) and only those who have been invited to the folder (collaborators
). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass theshared_link
object with noaccess
field, for example{ "shared_link": {} }
. Thecompany
access level is only available to paid accounts.
- password string? - The password required to access the shared link. Set the password to
null
to remove it. A password can only be set whenaccess
is set toopen
.
- vanity_name string? - Defines a custom vanity name to use in the shared link URL, for example
https://app.box.com/v/my-shared-link
. Custom URLs should not be used when sharing sensitive content as vanity URLs are a lot easier to guess than regular shared links.
- unshared_at string? - The timestamp at which this shared link will expire. This field can only be set by users with paid accounts. The value must be greater than the current date and time.
- permissions FilesfileIdaddSharedLinkSharedLinkPermissions? - The permissions on shared link.
boxapi: FilesfileIdwatermarkWatermark
The watermark to imprint on the file
Fields
- imprint string - The type of watermark to apply. Currently only supports one option.
boxapi: FileVersion
A standard representation of a file version
Fields
- Fields Included from *FileversionMini
boxapi: FileversionBase
The bare basic representation of a file version, the minimal amount of fields returned when using the fields
query parameter.
Fields
- id string? - The unique identifier that represent a file version.
- 'type string? -
file_version
boxapi: FileVersionLegalHold
File-Version-Legal-Hold is an entity representing all holds on a File Version.
Fields
- id string? - The unique identifier for this file version legal hold
- 'type string? -
file_version_legal_hold
- file_version FileversionMini? - A mini representation of a file version, used when nested within another resource.
- file FileMini? - A mini representation of a file, used when nested under another resource.
- legal_hold_policy_assignments LegalHoldPolicyAssignment[]? - List of assignments contributing to this Hold.
- deleted_at string? - Time that this File-Version-Legal-Hold was deleted.
boxapi: FileVersionLegalHolds
A list of file version legal holds.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: FileversionMini
A mini representation of a file version, used when nested within another resource.
Fields
- Fields Included from *FileversionBase
boxapi: FileVersionRetention
A retention policy blocks permanent deletion of content for a specified amount of time. Admins can apply policies to specified folders, or an entire enterprise. A file version retention is a record for a retained file version. To use this feature, you must have the manage retention policies scope enabled for your API key via your application management console. For more information about retention policies, please visit our help documentation
Fields
- id string? - The unique identifier for this file version retention.
- 'type string? -
file_version_retention
- file_version FileversionMini? - A mini representation of a file version, used when nested within another resource.
- file FileMini? - A mini representation of a file, used when nested under another resource.
- applied_at string? - When this file version retention object was created
- disposition_at string? - When the retention expires on this file version retention
- winning_retention_policy RetentionpolicyMini? - A mini representation of a retention policy, used when nested within another resource.
boxapi: FileVersionRetentions
A list of file version retentions.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: FileVersions
A list of file versions
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: Folder
A standard representation of a folder, as returned from any folder API endpoints by default
Fields
- Fields Included from *FolderMini
boxapi: FolderBase
The bare basic representation of a folder, the minimal amount of fields returned when using the fields
query parameter.
Fields
- id string? - 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
thefolder_id
is123
.
- etag string? - The HTTP
etag
of this folder. This can be used within some API endpoints in theIf-Match
andIf-None-Match
headers to only perform changes on the folder if (no) changes have happened.
- 'type string? -
folder
boxapi: FolderFolderUploadEmail
Fields
- access string? - When this parameter has been set, users can email files to the email address that has been automatically created for this folder. To create an email address, set this property either when creating or updating the folder. When set to
collaborators
, only emails from registered email addresses for collaborators will be accepted. This includes any email aliases a user might have registered. When set toopen
it will accept emails from any email address.
- email string? - The optional upload email address for this folder.
boxapi: FolderFull
A full representation of a folder, as can be returned from any folder API endpoints by default
Fields
- Fields Included from *Folder
boxapi: FolderLock
Folder locks define access restrictions placed by folder owners to prevent specific folders from being moved or deleted.
Fields
- folder FolderMini? - A mini representation of a file version, used when nested under another resource.
- id string? - The unique identifier for this folder lock.
- 'type string? - The object type, always
folder_lock
.
- created_by UserBase? - A mini representation of a user, used when nested within another resource.
- created_at string? - When the folder lock object was created.
- locked_operations FolderlockLockedOperations? - The operations that have been locked. Currently the
move
anddelete
operations cannot be locked separately, and both need to be set totrue
.
- lock_type string? - The lock type, always
freeze
.
boxapi: FolderlockLockedOperations
The operations that have been locked. Currently the move
and delete
operations cannot be locked separately, and both need to be set to true
.
Fields
- move boolean? - Whether moving the folder is restricted.
- delete boolean? - Whether deleting the folder is restricted.
boxapi: FolderLocks
A list of folder locks
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: FolderLocksFolder
The folder to apply the lock to.
Fields
- 'type string - The content type the lock is being applied to. Only
folder
is supported.
- id string - The ID of the folder.
boxapi: FolderLocksLockedOperations
The operations to lock for the folder. If locked_operations
is included in the request, both move
and delete
must also be included and both set to true
.
Fields
- move boolean - Whether moving the folder should be locked.
- delete boolean - Whether deleting the folder should be locked.
boxapi: FolderMini
A mini representation of a file version, used when nested under another resource.
Fields
- Fields Included from *FolderBase
boxapi: FoldersfolderIdaddSharedLinkSharedLink
The settings for the shared link to create on the folder. Use an empty object ({}
) to use the default settings for shared links.
Fields
- access string? - The level of access for the shared link. This can be restricted to anyone with the link (
open
), only people within the company (company
) and only those who have been invited to the folder (collaborators
). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass theshared_link
object with noaccess
field, for example{ "shared_link": {} }
. Thecompany
access level is only available to paid accounts.
- password string? - The password required to access the shared link. Set the password to
null
to remove it. A password can only be set whenaccess
is set toopen
.
- unshared_at string? - The timestamp at which this shared link will expire. This field can only be set by users with paid accounts. The value must be greater than the current date and time.
- permissions FoldersfolderIdaddSharedLinkSharedLinkPermissions? - The permissions on shared link.
boxapi: FoldersfolderIdaddSharedLinkSharedLinkPermissions
The permissions on shared link.
Fields
- can_download boolean? - If the shared link allows for downloading of folders. This can only be set when
access
is set toopen
orcompany
.
boxapi: FoldersfolderIdcopyParent
The destination folder to copy the folder to.
Fields
- id string - The ID of parent folder
boxapi: FoldersfolderIdParent
The parent folder for this folder. Use this to move the folder or to restore it out of the trash.
Fields
- id string? - The ID of the new parent folder
boxapi: FoldersfolderIdupdateSharedLinkSharedLink
The settings for the shared link to update.
Fields
- access string? - The level of access for the shared link. This can be restricted to anyone with the link (
open
), only people within the company (company
) and only those who have been invited to the folder (collaborators
). If not set, this field defaults to the access level specified by the enterprise admin. To create a shared link with this default setting pass theshared_link
object with noaccess
field, for example{ "shared_link": {} }
. Thecompany
access level is only available to paid accounts.
- password string? - The password required to access the shared link. Set the password to
null
to remove it. A password can only be set whenaccess
is set toopen
.
- unshared_at string? - The timestamp at which this shared link will expire. This field can only be set by users with paid accounts. The value must be greater than the current date and time.
- permissions FoldersfolderIdaddSharedLinkSharedLinkPermissions? - The permissions on shared link.
boxapi: FoldersfolderIdwatermarkWatermark
The watermark to imprint on the folder
Fields
- imprint string - The type of watermark to apply. Currently only supports one option.
boxapi: FoldersParent
The parent folder to create the new folder within.
Fields
- id string - The ID of parent folder
boxapi: Group
A standard representation of a group, as returned from any group API endpoints by default
Fields
- Fields Included from *GroupMini
boxapi: GroupBase
A base representation of a group.
Fields
- id string? - The unique identifier for this object
- 'type string? -
group
boxapi: GroupFull
Groups contain a set of users, and can be used in place of users in some operations, such as collaborations.
Fields
- Fields Included from *Group
boxapi: GroupMembership
Membership is used to signify that a user is part of a group.
Fields
- id string? - The unique identifier for this group membership
- 'type string? -
group_membership
- user UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- 'group GroupMini? - Mini representation of a group, including id and name of group.
- role string? - The role of the user in the group.
- created_at string? - The time this membership was created.
- modified_at string? - The time this membership was last modified.
boxapi: GroupMemberships
A list of group memberships.
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: GroupMembershipsGroup
The group to add the user to.
Fields
- id string - The ID of the group to add the user to
boxapi: GroupMembershipsUser
The user to add to the group.
Fields
- id string - The ID of the user to add to the group
boxapi: GroupMini
Mini representation of a group, including id and name of group.
Fields
- Fields Included from *GroupBase
boxapi: Groups
A list of groups.
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: Invite
An invite for a user to an enterprise.
Fields
- id string? - The unique identifier for this invite
- 'type string? -
invite
- invited_to Enterprise? - A representation of a Box enterprise
- actionable_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- invited_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- status string? - The status of the invite
- created_at string? - When the invite was created
- modified_at string? - When the invite was modified.
boxapi: InvitesActionableBy
The user to invite
Fields
- login string? - The login of the invited user
boxapi: InvitesEnterprise
The enterprise to invite the user to
Fields
- id string - The ID of the enterprise
boxapi: Items
A list of files, folders, and web links in their mini representation.
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: KeywordSkillCard
A skill card that contains a set of keywords
Fields
- created_at string? - The optional date and time this card was created at.
- 'type string -
skill_card
- skill_card_type string -
keyword
- skill_card_title KeywordskillcardSkillCardTitle? - The title of the card.
- skill SkillcardSkill - The service that applied this metadata.
- invocation SkillcardInvocation - The invocation of this service, used to track which instance of a service applied the metadata.
- entries KeywordskillcardEntries[] - An list of entries in the metadata card.
boxapi: KeywordskillcardEntries
An entry in the entries
attribute of a metadata card
Fields
- text string? - The text of the keyword.
boxapi: KeywordskillcardSkillCardTitle
The title of the card.
Fields
- code string? - An optional identifier for the title.
- message string - The actual title to show in the UI.
boxapi: LegalHoldPolicies
A list of legal hold policies.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: LegalHoldPolicy
Legal Hold Policy information describes the basic characteristics of the Policy, such as name, description, and filter dates.
Fields
- Fields Included from *LegalholdpolicyMini
boxapi: LegalHoldPolicyAssignment
Legal Hold Assignments are used to assign Legal Hold Policies to Users, Folders, Files, or File Versions. Creating a Legal Hold Assignment puts a hold on the File-Versions that belong to the Assignment's 'apply-to' entity.
Fields
- Fields Included from *LegalholdpolicyassignmentBase
boxapi: LegalholdpolicyassignmentBase
Legal Hold Assignments are used to assign Legal Hold Policies to Users, Folders, Files, or File Versions. Creating a Legal Hold Assignment puts a hold on the File-Versions that belong to the Assignment's 'apply-to' entity.
Fields
- id string? - The unique identifier for this legal hold assignment
- 'type string? -
legal_hold_policy_assignment
boxapi: LegalholdpolicyAssignmentCounts
Counts of assignments within this a legal hold policy by item type
Fields
- user int? - The number of users this policy is applied to
- folder int? - The number of folders this policy is applied to
- file int? - The number of files this policy is applied to
- file_version int? - The number of file versions this policy is applied to
boxapi: LegalHoldPolicyAssignments
A list of legal hold policies assignments.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: LegalHoldPolicyAssignmentsAssignTo
The item to assign the policy to
Fields
- 'type string - The type of item to assign the policy to
- id string - The ID of item to assign the policy to
boxapi: LegalholdpolicyMini
A mini legal hold policy
Fields
- id string? - The unique identifier for this legal hold policy
- 'type string? -
legal_hold_policy
boxapi: NameconflictInner
A file or folder for which a conflict was encountered, This object provides the type and identifier of the original item, as well as a mapping between its original name and it's new name as it will appear in the archive.
Fields
- id string? - The identifier of the item
- 'type string? - The type of this item
- original_name string? - The original name of this item
- download_name string? - The new name of this item as it will appear in the downloaded
zip
archive.
boxapi: OAuth2Error
An OAuth 2.0 error
Fields
- _error string? - The type of the error returned.
- error_description string? - The type of the error returned.
boxapi: PostOAuth2Revoke
A request to revoke an OAuth 2.0 token
Fields
- client_id string? - The Client ID of the application requesting to revoke the access token.
- client_secret string? - The client secret of the application requesting to revoke an access token.
- token string? - The access token to revoke.
boxapi: PostOAuth2Token
A request for a new OAuth 2.0 token
Fields
- grant_type string - The type of request being made, either using a client-side obtained authorization code, a refresh token, a JWT assertion, client credentials grant or another access token for the purpose of downscoping a token.
- client_id string? - The Client ID of the application requesting an access token. Used in combination with
authorization_code
,client_credentials
, orurn:ietf:params:oauth:grant-type:jwt-bearer
as thegrant_type
.
- client_secret string? - The client secret of the application requesting an access token. Used in combination with
authorization_code
,client_credentials
, orurn:ietf:params:oauth:grant-type:jwt-bearer
as thegrant_type
.
- code string? - The client-side authorization code passed to your application by Box in the browser redirect after the user has successfully granted your application permission to make API calls on their behalf. Used in combination with
authorization_code
as thegrant_type
.
- refresh_token string? - A refresh token used to get a new access token with. Used in combination with
refresh_token
as thegrant_type
.
- assertion string? - A JWT assertion for which to request a new access token. Used in combination with
urn:ietf:params:oauth:grant-type:jwt-bearer
as thegrant_type
.
- subject_token string? - The token to exchange for a downscoped token. This can be a regular access token, a JWT assertion, or an app token. Used in combination with
urn:ietf:params:oauth:grant-type:token-exchange
as thegrant_type
.
- subject_token_type string? - The type of
subject_token
passed in. Used in combination withurn:ietf:params:oauth:grant-type:token-exchange
as thegrant_type
.
- actor_token string? - The token used to create an annotator token. This is a JWT assertion. Used in combination with
urn:ietf:params:oauth:grant-type:token-exchange
as thegrant_type
.
- actor_token_type string? - The type of
actor_token
passed in. Used in combination withurn:ietf:params:oauth:grant-type:token-exchange
as thegrant_type
.
- scope string? - The space-delimited list of scopes that you want apply to the new access token. The
subject_token
will need to have all of these scopes or the call will error with 401 Unauthorized.
- 'resource string? - Full URL for the file that the token should be generated for.
- box_subject_type string? - Used in combination with
client_credentials
as thegrant_type
.
- box_subject_id string? - Used in combination with
client_credentials
as thegrant_type
. Value is determined bybox_subject_type
. Ifuser
use user ID and ifenterprise
use enterprise ID.
- box_shared_link string? - Full URL of the shared link on the file or folder that the token should be generated for.
boxapi: Postoauth2tokenRefreshaccesstoken
A request to refresh an Access Token. Use this API to refresh an expired Access Token using a valid Refresh Token.
Fields
- grant_type string - The type of request being made, in this case a refresh request.
- client_id string - The client ID of the application requesting to refresh the token.
- client_secret string - The client secret of the application requesting to refresh the token.
- refresh_token string - The refresh token to refresh.
boxapi: RealtimeServer
A real-time server that can be used for long polling user events
Fields
- 'type string? -
realtime_server
- url string? - The URL for the server.
- ttl int? - The time in minutes for which this server is available
- max_retries int? - The maximum number of retries this server will allow before a new long poll should be started by getting a new list of server.
- retry_timeout int? - The maximum number of seconds without a response after which you should retry the long poll connection. This helps to overcome network issues where the long poll looks to be working but no packages are coming through.
boxapi: RealtimeServers
A list of real-time servers that can be used for long-polling.
Fields
- chunk_size int? - The number of items in this response.
- entries RealtimeServer[]? - The entries of realtime servers.
boxapi: RecentItem
A recent item accessed by a user.
Fields
- 'type string? -
recent_item
- interaction_type string? - The most recent type of access the user performed on the item.
- interacted_at string? - The time of the most recent interaction.
- interaction_shared_link string? - If the item was accessed through a shared link it will appear here, otherwise this will be null.
boxapi: RecentItems
A list of recent items.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: Reference
The bare basic reference for an object
Fields
- id string? - The unique identifier for this object
- 'type string? - The type for this object
boxapi: RetentionPolicies
A list of retention policies
Fields
- total_count int? - The number of retention policies.
- entries RetentionPolicy[]? - The entries of retention policies.
boxapi: RetentionPoliciesCustomNotificationRecipients
A user that is notified of an event.
Fields
- 'type string? - The type of item to notify
- id string? - The id of the user to notify
- name string? - The name of the user to notify
- login string? - The email address the user uses to notify
boxapi: RetentionPolicy
A retention policy blocks permanent deletion of content for a specified amount of time. Admins can create retention policies and then later assign them to specific folders or their entire enterprise. To use this feature, you must have the manage retention policies scope enabled for your API key via your application management console.
Fields
- Fields Included from *RetentionpolicyMini
boxapi: RetentionPolicyAssignment
The retention policy assignment endpoint provides a way for admins to apply a retention policy on a per-folder basis, or place a blanket policy over the entire enterprise.
Fields
- id string? - The unique identifier for this retention policy assignment
- 'type string? -
retention_policy_assignment
- retention_policy RetentionpolicyMini? - A mini representation of a retention policy, used when nested within another resource.
- assigned_to Reference? - The bare basic reference for an object
- assigned_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- assigned_at string? - When the retention policy assignment object was created
boxapi: RetentionPolicyAssignments
A list of retention policy assignments
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: RetentionPolicyAssignmentsAssignTo
The item to assign the policy to
Fields
- 'type string - The type of item to assign the policy to.
- id string - The ID of item to assign the policy to. Set to
null
or omit whentype
is set toenterprise
.
boxapi: RetentionpolicyBase
The bare basic representation of a file version, the minimal amount of fields returned when using the fields
query parameter.
Fields
- id string? - The unique identifier that represent a file version.
- 'type string? -
retention_policy
boxapi: RetentionpolicyMini
A mini representation of a retention policy, used when nested within another resource.
Fields
- Fields Included from *RetentionpolicyBase
boxapi: SearchResults
A list of files, folders and web links that matched the search query.
Fields
- total_count int? - One greater than the offset of the last entry in the search results. The total number of entries in the collection may be less than
total_count
.
- 'limit int? - The limit that was used for this search. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter used.
boxapi: SearchResultsWithSharedLinks
A list of files, folders and web links that matched the search query, including the additional information about any shared links through which the item has been shared with the user. This response format is only returned when the include_recent_shared_links
query parameter has been set to true
.
Fields
- total_count int? - One greater than the offset of the last entry in the search results. The total number of entries in the collection may be less than
total_count
.
- 'limit int? - The limit that was used for this search. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter used.
boxapi: SearchResultWithSharedLink
A single of files, folder or web link that matched the search query, including the additional information about the shared link through which the item has been shared with the user. This response format is only returned when the include_recent_shared_links
query parameter has been set to true
.
Fields
- accessible_via_shared_link string? - The optional shared link through which the user has access to this item. This value is only returned for items for which the user has recently accessed the file through a shared link. For all other items this value will return
null
.
- 'type string? - The result type. The value is always
search_result
.
boxapi: SessionEndpoint
Session endpoints.
Fields
- upload_part string? - The URL to upload parts to
- 'commit string? - The URL used to commit the file
- 'abort string? - The URL for used to abort the session.
- list_parts string? - The URL users to list all parts.
- status string? - The URL used to get the status of the upload.
- log_event string? - The URL used to get the upload log from.
boxapi: Skill
An object representing a skill
Fields
- id string? - The unique identifier for this skill
- 'type string? -
skill
- name string? - The name of the skill
- api_key string? - The client ID of the application
boxapi: SkillCard
A generic Box Skill metadata card.
Fields
- created_at string? - The optional date and time this card was created at.
- 'type string -
skill_card
- skill_card_type string - The type of card to add to the file.
- skill_card_title SkillcardSkillCardTitle? - The title of the card.
- status SkillcardStatus? - Used with a card of type
status
to set the status of the skill. This can be used to show a message to the user while the Skill is processing the data.
- skill SkillcardSkill - The service that applied this metadata.
- invocation SkillcardInvocation - The invocation of this service, used to track which instance of a service applied the metadata.
- duration int? - An optional total duration in seconds. Used with a
skill_card_type
oftranscript
ortimeline
.
- entries SkillcardEntries[]? - An optional list of entries in the metadata card. This field is used with a
skill_card_type
oftranscript
,keyword
ortimeline
.
boxapi: SkillcardAppears
The timestamp for an entry.
Fields
- 'start int? - The time in seconds when an entry should start appearing on a timeline.
- end int? - The time in seconds when an entry should stop appearing on a timeline. For a
skill_card_type
oftranscript
this value is ignored.
boxapi: SkillcardEntries
An entry in the entries
attribute of a metadata card
Fields
- text string? - The text of the entry. This would be the actual keyword in a
keyword
card, the line of a transcript in atranscript
card, or the display name for an item when using thetimeline
entry.
- appears SkillcardAppears[]? - Defines a list of timestamps for an entry. This is used with a
skill_card_type
oftranscript
as well astimeline
to place items on a timeline. For askill_card_type
oftranscript
there can only be one entry in this list for each item, and only thestart
time is used to place the transcript on the timeline.
- image_url string? - The image to show on a for an entry that appears on a timeline. This image URL is required for any
timeline
cards. The image will be shown in a list of items (for example faces), and clicking the image will show the user where that entry appears during the duration of this entry.
boxapi: SkillcardInvocation
The invocation of this service, used to track which instance of a service applied the metadata.
Fields
- 'type string -
skill_invocation
- id string - A custom identifier that represent the instance of the service that applied this metadata. For example, if your
image-recognition-service
runs on multiple nodes, this field can be used to identify the ID of the node that was used to apply the metadata.
boxapi: SkillcardSkill
The service that applied this metadata.
Fields
- 'type string -
service
- id string - A custom identifier that represent the service that applied this metadata.
boxapi: SkillcardSkillCardTitle
The title of the card.
Fields
- code string? - An optional identifier for the title.
- message string - The actual title to show in the UI.
boxapi: SkillcardStatus
Used with a card of type status
to set the status of the skill. This can be used to show a message to the user while the Skill is processing the data.
Fields
- code string - A code for the status of this Skill invocation. By default each of these will have their own accompanied messages. These can be adjusted by setting the
message
value on this object.
- message string? - A custom message that can be provided with this status. This will be shown in the web app to the end user.
boxapi: SkillInvocation
The payload of a Box skill as sent to a skill's invocation_url
.
Fields
- 'type string? -
skill_invocation
- id string? - Unique identifier for the invocation request.
- skill Skill? - An object representing a skill
- token SkillinvocationToken? - The read-only and read-write access tokens for this item
- status SkillinvocationStatus? - The details status of this event.
- created_at string? - The time this invocation was created.
- trigger string? - Action that triggered the invocation
- enterprise Enterprise? - A representation of a Box enterprise
- event Event? - The description of an event that happened within Box
boxapi: SkillInvocationsskillIdFile
The file to assign the cards to.
Fields
- 'type string? -
file
- id string? - The ID of the file
boxapi: SkillInvocationsskillIdFileVersion
The optional file version to assign the cards to.
Fields
- 'type string? -
file_version
- id string? - The ID of the file version
boxapi: SkillInvocationsskillIdMetadata
The metadata to set for this skill. This is a list of Box Skills cards. These cards will overwrite any existing Box skill cards on the file.
Fields
- cards SkillCard|KeywordSkillCard|TimelineSkillCard|TranscriptSkillCard|StatusSkillCard[]? - A list of Box Skill cards to apply to this file.
boxapi: SkillInvocationsskillIdUsage
A descriptor that defines what items are affected by this call. Set this to the default values when setting a card to a success
state, and leave it out in most other situations.
Fields
- unit string? -
file
- value decimal? -
1
boxapi: SkillinvocationStatus
The details status of this event.
Fields
- state string? - The state of this event. *
invoked
- Triggered the skill with event details to start applying skill on the file. *processing
- Currently processing. *success
- Completed processing with a success. *transient_failure
- Encountered an issue which can be retried. *permanent_failure
- Encountered a permanent issue and retry would not help.
- message string? - Status information
- error_code string? - Error code information, if error occurred.
- additional_info string? - Additional status information.
boxapi: SkillinvocationToken
The read-only and read-write access tokens for this item
Fields
- read SkillinvocationTokenRead? - The basics of an access token
- write SkillinvocationTokenRead? - The basics of an access token
boxapi: SkillinvocationTokenRead
The basics of an access token
Fields
- access_token string? - The requested access token.
- expires_in int? - The time in seconds in seconds by which this token will expire.
- token_type string? - The type of access token returned.
- restricted_to FileScope[]? - The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources.
boxapi: StatusSkillCard
A Box Skill metadata card that puts a status message in the metadata sidebar.
Fields
- created_at string? - The optional date and time this card was created at.
- 'type string -
skill_card
- skill_card_type string -
status
- skill_card_title StatusskillcardSkillCardTitle? - The title of the card.
- status StatusskillcardStatus - Sets the status of the skill. This can be used to show a message to the user while the Skill is processing the data, or if it was not able to process the file.
- skill SkillcardSkill - The service that applied this metadata.
- invocation SkillcardInvocation - The invocation of this service, used to track which instance of a service applied the metadata.
boxapi: StatusskillcardSkillCardTitle
The title of the card.
Fields
- code string? - An optional identifier for the title.
- message string - The actual title to show in the UI.
boxapi: StatusskillcardStatus
Sets the status of the skill. This can be used to show a message to the user while the Skill is processing the data, or if it was not able to process the file.
Fields
- code string - A code for the status of this Skill invocation. By default each of these will have their own accompanied messages. These can be adjusted by setting the
message
value on this object.
- message string? - A custom message that can be provided with this status. This will be shown in the web app to the end user.
boxapi: StoragePolicies
A list of storage policies.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: StoragePolicy
The Storage Policy object describes the storage zone.
Fields
- Fields Included from *StoragepolicyMini
boxapi: StoragePolicyAssignment
The assignment of a storage policy to a user or enterprise
Fields
- storage_policy StoragepolicyMini? - A mini description of a Storage Policy object
- assigned_to AssignedTo? - The bare basic reference for an object
boxapi: StoragePolicyAssignments
A list of storage policy assignments.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: StoragePolicyAssignmentsAssignedTo
The user or enterprise to assign the storage policy to.
Fields
- 'type string - The type to assign the policy to.
- id string - The ID of the user or enterprise
boxapi: StoragePolicyAssignmentsStoragePolicy
The storage policy to assign to the user or enterprise
Fields
- 'type string - The type to assign.
- id string - The ID of the storage policy to assign.
boxapi: StoragepolicyMini
A mini description of a Storage Policy object
Fields
- id string? - The unique identifier for this storage policy
- 'type string? -
storage_policy
boxapi: Task
A task allows for file-centric workflows within Box. Users can create tasks on files and assign them to other users for them to complete the tasks.
Fields
- id string? - The unique identifier for this task
- 'type string? -
task
- item FileMini? - A mini representation of a file, used when nested under another resource.
- due_at string? - When the task is due
- action string? - The type of task the task assignee will be prompted to perform.
- message string? - A message that will be included with the task
- task_assignment_collection TaskAssignments? - A list of task assignments
- is_completed boolean? - Whether the task has been completed
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- created_at string? - When the task object was created
- completion_rule string? - Defines which assignees need to complete this task before the task is considered completed. *
all_assignees
requires all assignees to review or approve the the task in order for it to be considered completed. *any_assignee
accepts any one assignee to review or approve the the task in order for it to be considered completed.
boxapi: TaskAssignment
A task assignment defines which task is assigned to which user to complete.
Fields
- id string? - The unique identifier for this task assignment
- 'type string? -
task_assignment
- item FileMini? - A mini representation of a file, used when nested under another resource.
- assigned_to UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- message string? - A message that will is included with the task assignment. This is visible to the assigned user in the web and mobile UI.
- completed_at string? - The date at which this task assignment was completed. This will be
null
if the task is not completed yet.
- assigned_at string? - The date at which this task was assigned to the user.
- reminded_at string? - The date at which the assigned user was reminded of this task assignment.
- resolution_state string? - The current state of the assignment. The available states depend on the
action
value of the task object.
- assigned_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
boxapi: TaskAssignments
A list of task assignments
Fields
- total_count int? - The total number of items in this collection.
- entries TaskAssignment[]? - The entries of task assignments.
boxapi: TaskAssignmentsAssignTo
The user to assign the task to.
Fields
- id string? - The ID of the user to assign to the task. To specify a user by their email address use the
login
parameter.
- login string? - The email address of the user to assign to the task. To specify a user by their user ID please use the
id
parameter.
boxapi: TaskAssignmentsTask
The task to assign to a user.
Fields
- id string - The ID of the task
- 'type string - The type of the item to assign.
boxapi: Tasks
A list of tasks
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
.
- entries Task[]? - Tasks on files which other users can to complete for a user.
boxapi: TasksItem
The file to attach the task to.
Fields
- id string - The ID of the file
- 'type string -
file
boxapi: TermsOfService
The root-level record that is supposed to represent a single Terms of Service.
Fields
- Fields Included from *TermsofserviceMini
boxapi: TermsofserviceMini
The root-level record that is supposed to represent a single Terms of Service.
Fields
- id string? - The unique identifier for this terms of service.
- 'type string? -
terms_of_service
boxapi: TermsOfServices
A list of terms of services
Fields
- total_count int? - The total number of objects.
- entries TermsOfService[]? - The entries of terms of service.
boxapi: TermsOfServiceUserStatus
The association between a Terms of Service and a user
Fields
- id string? - The unique identifier for this terms of service user status
- 'type string? -
terms_of_service_user_status
- tos TermsofserviceMini? - The root-level record that is supposed to represent a single Terms of Service.
- user UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- is_accepted boolean? - If the user has accepted the terms of services
- created_at string? - When the legal item was created
- modified_at string? - When the legal item was modified.
boxapi: TermsOfServiceUserStatuses
A list of terms of service user statuses
Fields
- total_count int? - The total number of objects.
- entries TermsOfServiceUserStatus[]? - The associations between a Terms of Service and a user.
boxapi: TermsOfServiceUserStatusesTos
The terms of service to set the status for.
Fields
- 'type string - The type of object.
- id string - The ID of terms of service
boxapi: TermsOfServiceUserStatusesUser
The user to set the status for.
Fields
- 'type string - The type of object.
- id string - The ID of user
boxapi: TimelineSkillCard
A Box Skill metadata card that places a list of images on a timeline.
Fields
- created_at string? - The optional date and time this card was created at.
- 'type string -
skill_card
- skill_card_type string -
timeline
- skill_card_title TimelineskillcardSkillCardTitle? - The title of the card.
- skill SkillcardSkill - The service that applied this metadata.
- invocation SkillcardInvocation - The invocation of this service, used to track which instance of a service applied the metadata.
- duration int? - An total duration in seconds of the timeline.
- entries TimelineskillcardEntries[] - A list of entries on the timeline.
boxapi: TimelineskillcardAppears
The timestamp for an entry.
Fields
- 'start int? - The time in seconds when an entry should start appearing on a timeline.
- end int? - The time in seconds when an entry should stop appearing on a timeline.
boxapi: TimelineskillcardEntries
An single item that's placed on multiple items on the timeline.
Fields
- text string? - The text of the entry. This would be the display name for an item being placed on the timeline, for example the name of the person who was detected in a video.
- appears TimelineskillcardAppears[]? - Defines a list of timestamps for when this item should appear on the timeline.
- image_url string? - The image to show on a for an entry that appears on a timeline. This image URL is required for every entry. The image will be shown in a list of items (for example faces), and clicking the image will show the user where that entry appears during the duration of this entry.
boxapi: TimelineskillcardSkillCardTitle
The title of the card.
Fields
- code string? - An optional identifier for the title.
- message string - The actual title to show in the UI.
boxapi: TranscriptSkillCard
A Box Skill metadata card that adds a transcript to a file.
Fields
- created_at string? - The optional date and time this card was created at.
- 'type string -
skill_card
- skill_card_type string -
transcript
- skill_card_title SkillcardSkillCardTitle? - The title of the card.
- skill TranscriptskillcardSkill - The service that applied this metadata.
- invocation TranscriptskillcardInvocation - The invocation of this service, used to track which instance of a service applied the metadata.
- duration int? - An optional total duration in seconds. Used with a
skill_card_type
oftranscript
ortimeline
.
- entries TranscriptskillcardEntries[] - An list of entries for the card. This represents the individual entries of the transcription.
boxapi: TranscriptskillcardAppears
The timestamp for an entry.
Fields
- 'start int? - The time in seconds when an entry should start appearing on a timeline.
boxapi: TranscriptskillcardEntries
An entry in the entries
attribute of a metadata card
Fields
- text string? - The text of the entry. This would be the transcribed text assigned to the entry on the timeline.
- appears TranscriptskillcardAppears[]? - Defines when a transcribed bit of text appears. This only includes a start time and no end time.
boxapi: TranscriptskillcardInvocation
The invocation of this service, used to track which instance of a service applied the metadata.
Fields
- 'type string -
skill_invocation
- id string - A custom identifier that represent the instance of the service that applied this metadata. For example, if your
image-recognition-service
runs on multiple nodes, this field can be used to identify the ID of the node that was used to apply the metadata.
boxapi: TranscriptskillcardSkill
The service that applied this metadata.
Fields
- 'type string -
service
- id string - A custom identifier that represent the service that applied this metadata.
boxapi: UploadedPart
A chunk of a file uploaded as part of an upload session, as returned by some endpoints.
Fields
- part UploadPart? - The representation of an upload session chunk.
boxapi: UploadPart
The representation of an upload session chunk.
Fields
- Fields Included from *UploadpartMini
boxapi: UploadpartMini
The basic representation of an upload session chunk.
Fields
- part_id string? - The unique ID of the chunk.
- offset int? - The offset of the chunk within the file in bytes. The lower bound of the position of the chunk within the file.
- size int? - The size of the chunk in bytes.
boxapi: UploadParts
A list of uploaded chunks for an upload session.
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: UploadSession
An upload session for chunk uploading a file.
Fields
- id string? - The unique identifier for this session
- 'type string? -
upload_session
- session_expires_at string? - The date and time when this session expires.
- part_size int? - The size in bytes that must be used for all parts of of the upload. Only the last part is allowed to be of a smaller size.
- total_parts int? - The total number of parts expected in this upload session, as determined by the file size and part size.
- num_parts_processed int? - The number of parts that have been uploaded and processed by the server. This starts at
0
. When committing a file files, inspecting this property can provide insight if all parts have been uploaded correctly.
- session_endpoints SessionEndpoint? - Session endpoints.
boxapi: UploadUrl
The details for the upload session for the file.
Fields
- upload_url string? - A URL for an upload session that can be used to upload the file.
- upload_token string? - An optional access token to use to upload the file
boxapi: User
A standard representation of a user, as returned from any user API endpoints by default
Fields
- Fields Included from *UserMini
boxapi: UserBase
A mini representation of a user, used when nested within another resource.
Fields
- id string? - The unique identifier for this user
- 'type string? -
user
boxapi: UserFull
A full representation of a user, as can be returned from any user API endpoint.
Fields
- Fields Included from *User
boxapi: UserfullTrackingCodes
Custom tracking code for a user.
Fields
- 'type string? -
tracking_code
- name string? - The name of the tracking code, which must be preconfigured in the Admin Console
- value string? - The value of the tracking code
boxapi: UserMini
A mini representation of a user, as can be returned when nested within other resources.
Fields
- Fields Included from *UserBase
boxapi: UserNotificationEmail
An alternate notification email address to which email notifications are sent. When it's confirmed, this will be the email address to which notifications are sent instead of to the primary email address.
Fields
- email string? - The email address to send the notifications to.
- is_confirmed boolean? - Specifies if this email address has been confirmed.
boxapi: Users
A list of users.
The part of an API response that describes pagination
Fields
- total_count int? - One greater than the offset of the last entry in the entire collection. The total number of entries in the collection may be less than
total_count
. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- offset int? - The 0-based offset of the first entry in this set. This will be the same as the
offset
query parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
- 'order CollaborationsOrder[]? - The order by which items are returned. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted.
boxapi: UsersuserIdfolders0OwnedBy
The user who the folder will be transferred to
Fields
- id string - The ID of the user who the folder will be transferred to
boxapi: UsersuserIdNotificationEmail
An alternate notification email address to which email notifications are sent. When it's confirmed, this will be the email address to which notifications are sent instead of to the primary email address. Set this value to null
to remove the notification email.
Fields
- email string? - The email address to send the notifications to.
boxapi: Watermark
A watermark is a semi-transparent overlay on an embedded file preview that displays a viewer's email address or user ID and the time of access over a file's content
Fields
- watermark WatermarkWatermark? - Watermark details
boxapi: WatermarkWatermark
Watermark details
Fields
- created_at string? - When this watermark was created
- modified_at string? - When this task was modified
boxapi: Webhook
Represents a configured webhook.
Fields
- id string? - The unique identifier for this webhook.
- 'type string? -
webhook
- target WebhooksTarget? - The item that will trigger the webhook
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- created_at string? - A timestamp identifying the time that the webhook was created.
- address string? - The URL that is notified by this webhook
- triggers string[]? - An array of event names that this webhook is to be triggered for
boxapi: WebhookInvocation
The event that is sent to a webhook address when an event happens.
Fields
- id string? - The unique identifier for this webhook invocation
- 'type string? -
webhook_event
- webhook Webhook? - Represents a configured webhook.
- created_by UserMini? - A mini representation of a user, as can be returned when nested within other resources.
- created_at string? - A timestamp identifying the time that the webhook event was triggered.
- trigger string? - The event name that triggered this webhook
boxapi: Webhooks
A list of webhooks.
The part of an API response that describes marker based pagination
Fields
- 'limit int? - The limit that was used for these entries. This will be the same as the
limit
query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
- next_marker int? - The marker for the start of the next page of results.
- prev_marker int? - The marker for the start of the previous page of results.
boxapi: WebhooksTarget
The item that will trigger the webhook
Fields
- id string? - The ID of the item to trigger a webhook
- 'type string? - The type of item to trigger a webhook
boxapi: WebLink
Web links are objects that point to URLs. These objects are also known as bookmarks within the Box web application. Web link objects are treated similarly to file objects, they will also support most actions that apply to regular files.
Fields
- Fields Included from *WeblinkMini
boxapi: WeblinkBase
Web links are objects that point to URLs. These objects are also known as bookmarks within the Box web application. Web link objects are treated similarly to file objects, they will also support most actions that apply to regular files.
Fields
- id string? - The unique identifier for this web link
- 'type string? -
web_link
- etag string? - The entity tag of this web link. Used with
If-Match
headers.
boxapi: WeblinkMini
Web links are objects that point to URLs. These objects are also known as bookmarks within the Box web application. Web link objects are treated similarly to file objects, they will also support most actions that apply to regular files.
Fields
- Fields Included from *WeblinkBase
boxapi: WebLinksParent
The parent folder to create the web link within.
Fields
- id string - The ID of parent folder
boxapi: ZipDownload
Represents a successful request to create a zip
archive of a list of files and folders.
Fields
- download_url string? - The URL that can be used to download the
zip
archive. AGet
request to this URL will start streaming the items requested. By default, this URL is only valid for a few seconds, until theexires_at
time, unless a download is started after which it is valid for the duration of the download. It is important to note that the domain and path of this URL might change between API calls, and therefore it's important to use this URL as-is.
- status_url string? - The URL that can be used to get the status of the
zip
archive being downloaded. AGet
request to this URL will return the number of files in the archive as well as the number of items already downloaded or skipped. By default, this URL is only valid for a few seconds, until theexires_at
time, unless a download is started after which the URL is valid for 12 hours from the start of the download. It is important to note that the domain and path of this URL might change between API calls, and therefore it's important to use this URL as-is.
- expires_at string? - The time and date when this archive will expire. After this time the
status_url
anddownload_url
will return an error. By default, these URLs are only valid for a few seconds, unless a download is started after which thedownload_url
is valid for the duration of the download, and thestatus_url
is valid for 12 hours from the start of the download.
- name_conflicts NameConflict[]? - A list of conflicts that occurred when trying to create the archive. This would occur when multiple items have been requested with the same name. To solve these conflicts, the API will automatically rename an item and return a mapping between the original item's name and its new name. For every conflict, both files will be renamed and therefore this list will always be a multiple of 2.
boxapi: ZipDownloadRequest
A request to create a zip
archive to download
Fields
- items ZipdownloadrequestItems[] - A list of items to add to the
zip
archive. These can be folders or files.
- download_file_name string? - The optional name of the
zip
archive. This name will be appended by the.zip
file extension, for exampleJanuary Financials.zip
.
boxapi: ZipdownloadrequestItems
An item to add to the zip
archive. This can be a file or a folder.
Fields
- 'type string - The type of the item to add to the archive.
- id string - The identifier of the item to add to the archive. When this item is a folder then this can not be the root folder with ID
0
.
boxapi: ZipDownloadStatus
The status of a zip
archive being downloaded.
Fields
- total_file_count int? - The total number of files in the archive.
- downloaded_file_count int? - The number of files that have already been downloaded.
- skipped_file_count int? - The number of files that have been skipped as they could not be downloaded. In many cases this is due to permission issues that have surfaced between the creation of the request for the archive and the archive being downloaded.
- skipped_folder_count int? - The number of folders that have been skipped as they could not be downloaded. In many cases this is due to permission issues that have surfaced between the creation of the request for the archive and the archive being downloaded.
- state string? - The state of the archive being downloaded.
Import
import ballerinax/boxapi;
Metadata
Released date: about 3 years ago
Version: 0.1.1
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: slalpha5
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Box
File
Folder
Contributors
Other versions
0.1.1
0.1.0Dependencies