Module box
API
Definitions
ballerinax/box Ballerina library
Overview
Box is a content cloud for storing, sharing and managing files, with enterprise features for collaboration, governance and security. The Box Platform API exposes these capabilities programmatically.
The Box connector lets Ballerina applications work with files, folders, users, groups, collaborations, comments, tasks, metadata, retention and legal-hold policies, Box Sign requests and Box AI from integrations. It supports version 2024.0 of the Box Platform API.
Key features
- Upload, download, copy, update and delete files and folders, including version history and upload sessions
- Share content through shared links, collaborations, web links and webhooks
- Manage enterprise users, groups, memberships and terms of service
- Apply metadata templates and taxonomies, retention policies, legal holds and information barriers
- Search content, add comments and tasks, create Box Sign requests and call Box AI
Setup guide
To use the Box connector, you need a Box account and a Box Platform application.
Step 1: Create a Box application
- Sign in to the Box Developer Console and select Create Platform App.
- Choose Custom App and select User Authentication (OAuth 2.0) as the authentication method.
- Enter an application name and create the app.
Step 2: Configure OAuth 2.0 settings
- Open the Configuration tab of the app and note the Client ID and Client Secret.
- Under OAuth 2.0 Redirect URI, add the redirect URI of your application, for example
http://localhost:8080/callback. - Under Application Scopes, enable the scopes your integration needs, such as Read all files and folders stored in Box and Write all files and folders stored in Box.
- Save the configuration. Changes to scopes require the app to be authorized again.
Step 3: Obtain a refresh token
- Send the user to the authorization URL, replacing
YOUR_CLIENT_IDandYOUR_REDIRECT_URI:
https://account.box.com/api/oauth2/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI
- After the user grants access, Box redirects to your redirect URI with an authorization
code. - Exchange the code for tokens:
curl -X POST https://api.box.com/oauth2/token \ -d "grant_type=authorization_code" \ -d "code=AUTHORIZATION_CODE" \ -d "client_id=YOUR_CLIENT_ID" \ -d "client_secret=YOUR_CLIENT_SECRET"
The response contains an access_token and a refresh_token. Use the refresh token to configure the connector. Alternatively, a developer token from the Configuration tab can be used as a short-lived bearer token for testing.
Quickstart
To use the Box connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
Import the box module.
import ballerinax/box;
Step 2: Instantiate a new connector
- Create a
Config.tomlfile and configure the credentials obtained in the steps above:
clientId = "<Client ID>" clientSecret = "<Client Secret>" refreshToken = "<Refresh Token>" refreshUrl = "https://api.box.com/oauth2/token"
- Create a
box:ConnectionConfigwith the OAuth 2.0 refresh-token credentials and initialize the connector with it.
configurable string clientId = ?; configurable string clientSecret = ?; configurable string refreshToken = ?; configurable string refreshUrl = ?; final box:Client boxClient = check new ({ auth: { clientId, clientSecret, refreshToken, refreshUrl } });
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
Get the current user
public function main() returns error? { box:UserFull _ = check boxClient->getCurrentUser(); }
Step 4: Run the Ballerina application
bal run
Examples
The Box connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
-
Project workspace setup - Create a project folder, add a reference web link, optionally invite a collaborator and list the folder contents.
-
File review workflow - Read a file, leave a review comment, optionally create a review task and list the file's comments.
Clients
box: 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
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.box.com/2.0" - URL of the target service
authorizeUser
function authorizeUser(map<string|string[]> headers, *AuthorizeUserQueries queries) returns string|errorAuthorize user
Parameters
- queries *AuthorizeUserQueries - Queries to be sent with the request
requestAccessToken
function requestAccessToken(PostOAuth2Token payload, map<string|string[]> headers) returns AccessToken|errorRequest 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>
refreshAccessToken
function refreshAccessToken(PostOAuth2TokenRefreshAccessToken payload, map<string|string[]> headers) returns AccessToken|errorRefresh 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>
revokeAccessToken
function revokeAccessToken(PostOAuth2Revoke payload, map<string|string[]> headers) returns error?Revoke access token
Parameters
- payload PostOAuth2Revoke -
Return Type
- error? - Returns an empty response when the token was successfully revoked
getFileInformation
function getFileInformation(string fileId, GetFileInformationHeaders headers, *GetFileInformationQueries queries) returns FileFull|error?Get file information
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- headers GetFileInformationHeaders (default {}) - Headers to be sent with the request
- queries *GetFileInformationQueries - Queries to be sent with the request
Return Type
updateFile
function updateFile(string fileId, UpdateFileRequest payload, UpdateFileHeaders headers, *UpdateFileQueries queries) returns FileFull|errorUpdate file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload UpdateFileRequest -
- headers UpdateFileHeaders (default {}) - Headers to be sent with the request
- queries *UpdateFileQueries - Queries to be sent with the request
Return Type
restoreFile
function restoreFile(string fileId, RestoreFileRequest payload, map<string|string[]> headers, *RestoreFileQueries queries) returns TrashFileRestored|errorRestore file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload RestoreFileRequest -
- queries *RestoreFileQueries - Queries to be sent with the request
Return Type
- TrashFileRestored|error - Returns a file object when the file has been restored
deleteFile
function deleteFile(string fileId, DeleteFileHeaders headers) returns error?Delete file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- headers DeleteFileHeaders (default {}) - Headers to be sent with the request
Return Type
- error? - Returns an empty response when the file has been successfully deleted
listFileAppItemAssociations
function listFileAppItemAssociations(string fileId, map<string|string[]> headers, *ListFileAppItemAssociationsQueries queries) returns AppItemAssociations|errorList file app item associations
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *ListFileAppItemAssociationsQueries - Queries to be sent with the request
Return Type
- AppItemAssociations|error - Returns a collection of app item objects. If there are no app items on this file, an empty collection will be returned. This list includes app items on ancestors of this File
downloadFile
function downloadFile(string fileId, DownloadFileHeaders headers, *DownloadFileQueries queries) returns byte[]|error?Download file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- headers DownloadFileHeaders (default {}) - Headers to be sent with the request
- queries *DownloadFileQueries - Queries to be sent with the request
Return Type
- byte[]|error? - Returns the requested file if the client has the follow redirects setting enabled to automatically follow HTTP
3xxresponses as redirects. If not, the request will return302instead. For details, see the download file guide
uploadFileVersion
function uploadFileVersion(string fileId, UploadFileVersionRequest payload, UploadFileVersionHeaders headers, *UploadFileVersionQueries queries) returns Files|errorUpload file version
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload UploadFileVersionRequest -
- headers UploadFileVersionHeaders (default {}) - Headers to be sent with the request
- queries *UploadFileVersionQueries - Queries to be sent with the request
uploadFile
function uploadFile(UploadFileRequest payload, UploadFileHeaders headers, *UploadFileQueries queries) returns Files|errorUpload file
Parameters
- payload UploadFileRequest -
- headers UploadFileHeaders (default {}) - Headers to be sent with the request
- queries *UploadFileQueries - Queries to be sent with the request
preflightCheckBeforeUpload
Preflight check before upload
Return Type
createUploadSession
function createUploadSession(CreateUploadSessionRequest payload, map<string|string[]> headers) returns UploadSession|errorCreate upload session
Parameters
- payload CreateUploadSessionRequest -
Return Type
- UploadSession|error - Returns a new upload session
createUploadSessionForExistingFile
function createUploadSessionForExistingFile(string fileId, CreateUploadSessionForExistingFileRequest payload, map<string|string[]> headers) returns UploadSession|errorCreate upload session for existing file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- UploadSession|error - Returns a new upload session
getUploadSession
function getUploadSession(string uploadSessionId, map<string|string[]> headers) returns UploadSession|errorGet upload session
Parameters
- uploadSessionId string - The ID of the upload session
Return Type
- UploadSession|error - Returns an upload session object
uploadPartOfFile
function uploadPartOfFile(string uploadSessionId, UploadPartOfFileHeaders headers, byte[] payload) returns UploadedPart|errorUpload part of file
Parameters
- uploadSessionId string - The ID of the upload session
- headers UploadPartOfFileHeaders - Headers to be sent with the request
- payload byte[] -
Return Type
- UploadedPart|error - Chunk has been uploaded successfully
removeUploadSession
Remove upload session
Parameters
- uploadSessionId string - The ID of the upload session
Return Type
- error? - A blank response is returned if the session was successfully aborted
listParts
function listParts(string uploadSessionId, map<string|string[]> headers, *ListPartsQueries queries) returns UploadParts|errorList parts
Parameters
- uploadSessionId string - The ID of the upload session
- queries *ListPartsQueries - Queries to be sent with the request
Return Type
- UploadParts|error - Returns a list of parts that have been uploaded
planUploadSession
function planUploadSession(string uploadSessionId, UploadSessionPlanRequest payload, map<string|string[]> headers) returns UploadSessionPlanResponse|errorPlan upload session
Return Type
- UploadSessionPlanResponse|error - Returns information about which parts already exist (hits) and which parts need to be uploaded (misses)
commitUploadSession
function commitUploadSession(string uploadSessionId, CommitUploadSessionHeaders headers, CommitUploadSessionRequest payload) returns Files|error?Commit upload session
Parameters
- uploadSessionId string - The ID of the upload session
- headers CommitUploadSessionHeaders - Headers to be sent with the request
- payload CommitUploadSessionRequest -
copyFile
function copyFile(string fileId, CopyFileRequest payload, map<string|string[]> headers, *CopyFileQueries queries) returns FileFull|error?Copy file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload CopyFileRequest -
- queries *CopyFileQueries - Queries to be sent with the request
Return Type
getFileThumbnail
function getFileThumbnail(string fileId, "png"|"jpg" extension, map<string|string[]> headers, *GetFileThumbnailQueries queries) returns byte[]|error?Get file thumbnail
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- extension "png"|"jpg" - The file format for the thumbnail
- queries *GetFileThumbnailQueries - Queries to be sent with the request
Return Type
- byte[]|error? - When a thumbnail can be created the thumbnail data will be returned in the body of the response
listFileCollaborations
function listFileCollaborations(string fileId, map<string|string[]> headers, *ListFileCollaborationsQueries queries) returns Collaborations|errorList file collaborations
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *ListFileCollaborationsQueries - Queries to be sent with the request
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
statusis set topending, indicating invitations that have been sent but not yet accepted
listFileComments
function listFileComments(string fileId, map<string|string[]> headers, *ListFileCommentsQueries queries) returns Comments|errorList file comments
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *ListFileCommentsQueries - Queries to be sent with the request
Return Type
listTasksOnFile
List tasks on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
getTrashedFile
function getTrashedFile(string fileId, map<string|string[]> headers, *GetTrashedFileQueries queries) returns TrashFile|errorGet trashed file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *GetTrashedFileQueries - Queries to be sent with the request
Return Type
permanentlyRemoveFile
Permanently remove file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- error? - Returns an empty response when the file was permanently deleted
listAllFileVersions
function listAllFileVersions(string fileId, map<string|string[]> headers, *ListAllFileVersionsQueries queries) returns FileVersions|errorList all file versions
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *ListAllFileVersionsQueries - Queries to be sent with the request
Return Type
- FileVersions|error - Returns an array of past versions for this file
getFileVersion
function getFileVersion(string fileId, string fileVersionId, map<string|string[]> headers, *GetFileVersionQueries queries) returns FileVersionFull|errorGet file version
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- fileVersionId string - The ID of the file version
- queries *GetFileVersionQueries - Queries to be sent with the request
Return Type
- FileVersionFull|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
restoreFileVersion
function restoreFileVersion(string fileId, string fileVersionId, RestoreFileVersionRequest payload, map<string|string[]> headers) returns FileVersionFull|errorRestore file version
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- fileVersionId string - The ID of the file version
- payload RestoreFileVersionRequest -
Return Type
- FileVersionFull|error - Returns a restored file version object
removeFileVersion
function removeFileVersion(string fileId, string fileVersionId, RemoveFileVersionHeaders headers) returns error?Remove file version
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- fileVersionId string - The ID of the file version
- headers RemoveFileVersionHeaders (default {}) - Headers to be sent with the request
Return Type
- error? - Returns an empty response when the file has been successfully deleted
promoteFileVersion
function promoteFileVersion(string fileId, PromoteFileVersionRequest payload, map<string|string[]> headers, *PromoteFileVersionQueries queries) returns FileVersionFull|errorPromote file version
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload PromoteFileVersionRequest -
- queries *PromoteFileVersionQueries - Queries to be sent with the request
Return Type
- FileVersionFull|error - Returns a newly created file version object
listMetadataInstancesOnFile
function listMetadataInstancesOnFile(string fileId, map<string|string[]> headers, *ListMetadataInstancesOnFileQueries queries) returns Metadatas|errorList metadata instances on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *ListMetadataInstancesOnFileQueries - Queries to be sent with the request
Return Type
getClassificationOnFile
function getClassificationOnFile(string fileId, map<string|string[]> headers) returns Classification|errorGet classification on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- Classification|error - Returns an instance of the
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
updateClassificationOnFile
function updateClassificationOnFile(string fileId, UpdateClassificationOnFileRequest[] payload, map<string|string[]> headers) returns Classification|errorUpdate classification on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload UpdateClassificationOnFileRequest[] -
Return Type
- Classification|error - Returns the updated classification metadata template instance
addClassificationToFile
function addClassificationToFile(string fileId, AddClassificationToFileRequest payload, map<string|string[]> headers) returns Classification|errorAdd classification to file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload AddClassificationToFileRequest -
Return Type
- Classification|error - Returns the classification template instance that was applied to the file
removeClassificationFromFile
Remove classification from file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- error? - Returns an empty response when the classification is successfully deleted
getMetadataInstanceOnFile
function getMetadataInstanceOnFile(string fileId, "global"|"enterprise" scope, string templateKey, map<string|string[]> headers, *GetMetadataInstanceOnFileQueries queries) returns MetadataFull|errorGet metadata instance on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- queries *GetMetadataInstanceOnFileQueries - Queries to be sent with the request
Return Type
- MetadataFull|error - An instance of the metadata template that includes additional "key:value" pairs defined by the user or an application
updateMetadataInstanceOnFile
function updateMetadataInstanceOnFile(string fileId, "global"|"enterprise" scope, string templateKey, AMetadataInstanceUpdateOperation[] payload, map<string|string[]> headers) returns MetadataFull|errorUpdate metadata instance on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- payload AMetadataInstanceUpdateOperation[] -
Return Type
- MetadataFull|error - Returns the updated metadata template instance, with the custom template data included
createMetadataInstanceOnFile
function createMetadataInstanceOnFile(string fileId, "global"|"enterprise" scope, string templateKey, record {} payload, map<string|string[]> headers) returns MetadataFull|errorCreate metadata instance on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- payload record {} -
Return Type
- MetadataFull|error - Returns the instance of the template that was applied to the file, including the data that was applied to the template
removeMetadataInstanceFromFile
function removeMetadataInstanceFromFile(string fileId, "global"|"enterprise" scope, string templateKey, map<string|string[]> headers) returns error?Remove metadata instance from file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
Return Type
- error? - Returns an empty response when the metadata is successfully deleted
listSkillCardsOnFile
function listSkillCardsOnFile(string fileId, map<string|string[]> headers) returns SkillCardsMetadata|errorList Box Skill cards on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- SkillCardsMetadata|error - Returns all the metadata associated with a file. This API does not support pagination and will therefore always return all of the metadata associated to the file
updateSkillCardsOnFile
function updateSkillCardsOnFile(string fileId, UpdateSkillCardsOnFileRequest[] payload, map<string|string[]> headers) returns SkillCardsMetadata|errorUpdate Box Skill cards on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload UpdateSkillCardsOnFileRequest[] -
Return Type
- SkillCardsMetadata|error - Returns the updated metadata template, with the custom template data included
createSkillCardsOnFile
function createSkillCardsOnFile(string fileId, CreateSkillCardsOnFileRequest payload, map<string|string[]> headers) returns SkillCardsMetadata|errorCreate Box Skill cards on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload CreateSkillCardsOnFileRequest -
Return Type
- SkillCardsMetadata|error - Returns the instance of the template that was applied to the file, including the data that was applied to the template
removeSkillCardsFromFile
Remove Box Skill cards from file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- error? - Returns an empty response when the cards are successfully deleted
getWatermarkOnFile
Get watermark on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
applyWatermarkToFile
function applyWatermarkToFile(string fileId, ApplyWatermarkToFileRequest payload, map<string|string[]> headers) returns Watermark|errorApply watermark to file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload ApplyWatermarkToFileRequest -
Return Type
removeWatermarkFromFile
Remove watermark from file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
Return Type
- error? - Removes the watermark and returns an empty response
getFileRequest
function getFileRequest(string fileRequestId, map<string|string[]> headers) returns FileRequest|errorGet file request
Parameters
- fileRequestId 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/123thefile_request_idis123
Return Type
- FileRequest|error - Returns a file request object
updateFileRequest
function updateFileRequest(string fileRequestId, FileRequestUpdateRequest payload, UpdateFileRequestHeaders headers) returns FileRequest|errorUpdate file request
Parameters
- fileRequestId 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/123thefile_request_idis123
- payload FileRequestUpdateRequest -
- headers UpdateFileRequestHeaders (default {}) - Headers to be sent with the request
Return Type
- FileRequest|error - Returns the updated file request object
deleteFileRequest
Delete file request
Parameters
- fileRequestId 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/123thefile_request_idis123
Return Type
- error? - Returns an empty response when the file request has been successfully deleted
copyFileRequest
function copyFileRequest(string fileRequestId, FileRequestCopyRequest payload, map<string|string[]> headers) returns FileRequest|errorCopy file request
Parameters
- fileRequestId 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/123thefile_request_idis123
- payload FileRequestCopyRequest -
Return Type
- FileRequest|error - Returns updated file request object
getFolderInformation
function getFolderInformation(string folderId, GetFolderInformationHeaders headers, *GetFolderInformationQueries queries) returns FolderFull|error?Get folder information
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- headers GetFolderInformationHeaders (default {}) - Headers to be sent with the request
- queries *GetFolderInformationQueries - Queries to be sent with the request
Return Type
- FolderFull|error? - Returns a folder, including the first 100 entries in the folder. If you used query parameters like
sort,direction,offset, orlimitthe folder items list will be affected accordingly. To fetch more items within the folder, 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
updateFolder
function updateFolder(string folderId, UpdateFolderRequest payload, UpdateFolderHeaders headers, *UpdateFolderQueries queries) returns FolderFull|errorUpdate folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload UpdateFolderRequest -
- headers UpdateFolderHeaders (default {}) - Headers to be sent with the request
- queries *UpdateFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|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. If the user is moving folders with a large number of items in all of their descendants, the call will be run asynchronously. If the operation is not completed within 10 minutes, the user will receive a 200 OK response, and the operation will continue running
restoreFolder
function restoreFolder(string folderId, RestoreFolderRequest payload, map<string|string[]> headers, *RestoreFolderQueries queries) returns TrashFolderRestored|errorRestore folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload RestoreFolderRequest -
- queries *RestoreFolderQueries - Queries to be sent with the request
Return Type
- TrashFolderRestored|error - Returns a folder object when the folder has been restored
deleteFolder
function deleteFolder(string folderId, DeleteFolderHeaders headers, *DeleteFolderQueries queries) returns error?Delete folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- headers DeleteFolderHeaders (default {}) - Headers to be sent with the request
- queries *DeleteFolderQueries - Queries to be sent with the request
Return Type
- error? - Returns an empty response when the folder is successfully deleted or moved to the trash
listFolderAppItemAssociations
function listFolderAppItemAssociations(string folderId, map<string|string[]> headers, *ListFolderAppItemAssociationsQueries queries) returns AppItemAssociations|errorList folder app item associations
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- queries *ListFolderAppItemAssociationsQueries - Queries to be sent with the request
Return Type
- AppItemAssociations|error - Returns a collection of app item objects. If there are no app items on this folder an empty collection will be returned. This list includes app items on ancestors of this folder
listItemsInFolder
function listItemsInFolder(string folderId, ListItemsInFolderHeaders headers, *ListItemsInFolderQueries queries) returns Items|errorList items in folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- headers ListItemsInFolderHeaders (default {}) - Headers to be sent with the request
- queries *ListItemsInFolderQueries - Queries to be sent with the request
Return Type
createFolder
function createFolder(CreateFolderRequest payload, map<string|string[]> headers, *CreateFolderQueries queries) returns FolderFull|errorCreate folder
Parameters
- payload CreateFolderRequest -
- queries *CreateFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns a folder object. Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields
copyFolder
function copyFolder(string folderId, CopyFolderRequest payload, map<string|string[]> headers, *CopyFolderQueries queries) returns FolderFull|error?Copy folder
Parameters
- folderId 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/123thefolder_idis123. The root folder with the ID0can not be copied
- payload CopyFolderRequest -
- queries *CopyFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error? - Returns a new folder object representing the copied folder. Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields
listFolderCollaborations
function listFolderCollaborations(string folderId, map<string|string[]> headers, *ListFolderCollaborationsQueries queries) returns Collaborations|errorList folder collaborations
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/123thefolder_idis123
- queries *ListFolderCollaborationsQueries - Queries to be sent with the request
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
statusis set topending, indicating invitations that have been sent but not yet accepted
getTrashedFolder
function getTrashedFolder(string folderId, map<string|string[]> headers, *GetTrashedFolderQueries queries) returns TrashFolder|errorGet trashed folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- queries *GetTrashedFolderQueries - Queries to be sent with the request
Return Type
- TrashFolder|error - Returns the folder that was trashed, including information about when the it was moved to the trash
permanentlyRemoveFolder
Permanently remove folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
Return Type
- error? - Returns an empty response when the folder was permanently deleted
listMetadataInstancesOnFolder
function listMetadataInstancesOnFolder(string folderId, map<string|string[]> headers, *ListMetadataInstancesOnFolderQueries queries) returns Metadatas|errorList metadata instances on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- queries *ListMetadataInstancesOnFolderQueries - Queries to be sent with the request
Return Type
getClassificationOnFolder
function getClassificationOnFolder(string folderId, map<string|string[]> headers) returns Classification|errorGet classification on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
Return Type
- Classification|error - Returns an instance of the
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
updateClassificationOnFolder
function updateClassificationOnFolder(string folderId, UpdateClassificationOnFolderRequest[] payload, map<string|string[]> headers) returns Classification|errorUpdate classification on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload UpdateClassificationOnFolderRequest[] -
Return Type
- Classification|error - Returns the updated classification metadata template instance
addClassificationToFolder
function addClassificationToFolder(string folderId, AddClassificationToFolderRequest payload, map<string|string[]> headers) returns Classification|errorAdd classification to folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload AddClassificationToFolderRequest -
Return Type
- Classification|error - Returns the classification template instance that was applied to the folder
removeClassificationFromFolder
function removeClassificationFromFolder(string folderId, map<string|string[]> headers) returns error?Remove classification from folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
Return Type
- error? - Returns an empty response when the classification is successfully deleted
getMetadataInstanceOnFolder
function getMetadataInstanceOnFolder(string folderId, "global"|"enterprise" scope, string templateKey, map<string|string[]> headers) returns MetadataFull|errorGet metadata instance on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
Return Type
- MetadataFull|error - An instance of the metadata template that includes additional "key:value" pairs defined by the user or an application
updateMetadataInstanceOnFolder
function updateMetadataInstanceOnFolder(string folderId, "global"|"enterprise" scope, string templateKey, AMetadataInstanceUpdateOperation[] payload, map<string|string[]> headers) returns MetadataFull|errorUpdate metadata instance on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- payload AMetadataInstanceUpdateOperation[] -
Return Type
- MetadataFull|error - Returns the updated metadata template instance, with the custom template data included
createMetadataInstanceOnFolder
function createMetadataInstanceOnFolder(string folderId, "global"|"enterprise" scope, string templateKey, record {} payload, map<string|string[]> headers) returns MetadataFull|errorCreate metadata instance on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- payload record {} -
Return Type
- MetadataFull|error - Returns the instance of the template that was applied to the folder, including the data that was applied to the template
removeMetadataInstanceFromFolder
function removeMetadataInstanceFromFolder(string folderId, "global"|"enterprise" scope, string templateKey, map<string|string[]> headers) returns error?Remove metadata instance from folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
Return Type
- error? - Returns an empty response when the metadata is successfully deleted
listTrashedItems
function listTrashedItems(map<string|string[]> headers, *ListTrashedItemsQueries queries) returns Items|errorList trashed items
Parameters
- queries *ListTrashedItemsQueries - Queries to be sent with the request
getWatermarkForFolder
function getWatermarkForFolder(string folderId, map<string|string[]> headers) returns Watermark|errorGet watermark for folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
Return Type
applyWatermarkToFolder
function applyWatermarkToFolder(string folderId, ApplyWatermarkToFolderRequest payload, map<string|string[]> headers) returns Watermark|errorApply watermark to folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload ApplyWatermarkToFolderRequest -
Return Type
removeWatermarkFromFolder
Remove watermark from folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
Return Type
- error? - An empty response will be returned when the watermark was successfully deleted
listFolderLocks
function listFolderLocks(map<string|string[]> headers, *ListFolderLocksQueries queries) returns FolderLocks|errorList folder locks
Parameters
- queries *ListFolderLocksQueries - Queries to be sent with the request
Return Type
- FolderLocks|error - Returns details for all folder locks applied to the folder, including the lock type and user that applied the lock
createFolderLock
function createFolderLock(CreateFolderLockRequest payload, map<string|string[]> headers) returns FolderLock|errorCreate folder lock
Parameters
- payload CreateFolderLockRequest -
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
deleteFolderLock
Delete folder lock
Parameters
- folderLockId string - The ID of the folder lock
Return Type
- error? - Returns an empty response when the folder lock is successfully deleted
findMetadataTemplateByInstanceID
function findMetadataTemplateByInstanceID(map<string|string[]> headers, *FindMetadataTemplateByInstanceIDQueries queries) returns MetadataTemplates|errorFind metadata template by instance ID
Parameters
- queries *FindMetadataTemplateByInstanceIDQueries - Queries to be sent with the request
Return Type
- MetadataTemplates|error - Returns a list containing the 1 metadata template that matches the instance ID
listAllClassifications
function listAllClassifications(map<string|string[]> headers) returns ClassificationTemplate|errorList all classifications
Return Type
- ClassificationTemplate|error - Returns the
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
addClassification
function addClassification(AddClassificationRequest[] payload, map<string|string[]> headers) returns ClassificationTemplate|errorAdd classification
Parameters
- payload AddClassificationRequest[] -
Return Type
- ClassificationTemplate|error - Returns the updated
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
updateClassification
function updateClassification(UpdateClassificationRequest[] payload, map<string|string[]> headers) returns ClassificationTemplate|errorUpdate classification
Parameters
- payload UpdateClassificationRequest[] -
Return Type
- ClassificationTemplate|error - Returns the updated
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
getMetadataTemplateByName
function getMetadataTemplateByName("global"|"enterprise" scope, string templateKey, map<string|string[]> headers) returns MetadataTemplate|errorGet metadata template by name
Parameters
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
Return Type
- MetadataTemplate|error - Returns the metadata template matching the
scopeandtemplatename
updateMetadataTemplate
function updateMetadataTemplate("global"|"enterprise" scope, string templateKey, AMetadataTemplateUpdateOperation[] payload, map<string|string[]> headers) returns MetadataTemplate|errorUpdate metadata template
Parameters
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
- payload AMetadataTemplateUpdateOperation[] -
Return Type
- MetadataTemplate|error - Returns the updated metadata template, with the custom template data included
removeMetadataTemplate
function removeMetadataTemplate("global"|"enterprise" scope, string templateKey, map<string|string[]> headers) returns error?Remove metadata template
Parameters
- scope "global"|"enterprise" - The scope of the metadata template
- templateKey string - The name of the metadata template
Return Type
- error? - Returns an empty response when the metadata template is successfully deleted
getMetadataTemplateByID
function getMetadataTemplateByID(string templateId, map<string|string[]> headers) returns MetadataTemplate|errorGet metadata template by ID
Parameters
- templateId string - The ID of the template
Return Type
- MetadataTemplate|error - Returns the metadata template that matches the ID
listAllGlobalMetadataTemplates
function listAllGlobalMetadataTemplates(map<string|string[]> headers, *ListAllGlobalMetadataTemplatesQueries queries) returns MetadataTemplates|errorList all global metadata templates
Parameters
- queries *ListAllGlobalMetadataTemplatesQueries - Queries to be sent with the request
Return Type
- MetadataTemplates|error - Returns all of the metadata templates available to all enterprises and their corresponding schema
listAllMetadataTemplatesForEnterprise
function listAllMetadataTemplatesForEnterprise(map<string|string[]> headers, *ListAllMetadataTemplatesForEnterpriseQueries queries) returns MetadataTemplates|errorList all metadata templates for enterprise
Parameters
- queries *ListAllMetadataTemplatesForEnterpriseQueries - Queries to be sent with the request
Return Type
- MetadataTemplates|error - Returns all of the metadata templates within an enterprise and their corresponding schema
createMetadataTemplate
function createMetadataTemplate(CreateMetadataTemplateRequest payload, map<string|string[]> headers) returns MetadataTemplate|errorCreate metadata template
Parameters
- payload CreateMetadataTemplateRequest -
Return Type
- MetadataTemplate|error - The schema representing the metadata template created
addInitialClassifications
function addInitialClassifications(AddInitialClassificationsRequest payload, map<string|string[]> headers) returns ClassificationTemplate|errorAdd initial classifications
Parameters
- payload AddInitialClassificationsRequest -
Return Type
- ClassificationTemplate|error - Returns a new
securityClassificationmetadata template, which contains aBox__Security__Classification__Keyfield that lists all the classifications available to this enterprise
listMetadataCascadePolicies
function listMetadataCascadePolicies(map<string|string[]> headers, *ListMetadataCascadePoliciesQueries queries) returns MetadataCascadePolicies|errorList metadata cascade policies
Parameters
- queries *ListMetadataCascadePoliciesQueries - Queries to be sent with the request
Return Type
- MetadataCascadePolicies|error - Returns a list of metadata cascade policies
createMetadataCascadePolicy
function createMetadataCascadePolicy(CreateMetadataCascadePolicyRequest payload, map<string|string[]> headers) returns MetadataCascadePolicy|errorCreate metadata cascade policy
Parameters
- payload CreateMetadataCascadePolicyRequest -
Return Type
- MetadataCascadePolicy|error - Returns a new of metadata cascade policy
getMetadataCascadePolicy
function getMetadataCascadePolicy(string metadataCascadePolicyId, map<string|string[]> headers) returns MetadataCascadePolicy|errorGet metadata cascade policy
Parameters
- metadataCascadePolicyId string - The ID of the metadata cascade policy
Return Type
- MetadataCascadePolicy|error - Returns a metadata cascade policy
removeMetadataCascadePolicy
function removeMetadataCascadePolicy(string metadataCascadePolicyId, map<string|string[]> headers) returns error?Remove metadata cascade policy
Parameters
- metadataCascadePolicyId string - The ID of the metadata cascade policy
Return Type
- error? - Returns an empty response when the policy is successfully deleted
applyMetadataCascadePolicy
function applyMetadataCascadePolicy(string metadataCascadePolicyId, ApplyMetadataCascadePolicyRequest payload, map<string|string[]> headers) returns error?Force-apply metadata cascade policy to folder
Parameters
- metadataCascadePolicyId string - The ID of the cascade policy to force-apply
- payload ApplyMetadataCascadePolicyRequest -
Return Type
- error? - Returns an empty response when the API call was successful. The metadata cascade operation will be performed asynchronously. The API call will return directly, before the cascade operation is complete. There is currently no API to check for the status of this operation
queryFilesFoldersByMetadata
function queryFilesFoldersByMetadata(MetadataQuery payload, map<string|string[]> headers) returns MetadataQueryResults|errorQuery files/folders by metadata
Parameters
- payload MetadataQuery -
Return Type
- MetadataQueryResults|error - Returns a list of files and folders that match this metadata query
getComment
function getComment(string commentId, map<string|string[]> headers, *GetCommentQueries queries) returns CommentFull|errorGet comment
Parameters
- commentId string - The ID of the comment
- queries *GetCommentQueries - Queries to be sent with the request
Return Type
- CommentFull|error - Returns a full comment object
updateComment
function updateComment(string commentId, UpdateCommentRequest payload, map<string|string[]> headers, *UpdateCommentQueries queries) returns CommentFull|errorUpdate comment
Parameters
- commentId string - The ID of the comment
- payload UpdateCommentRequest -
- queries *UpdateCommentQueries - Queries to be sent with the request
Return Type
- CommentFull|error - Returns the updated comment object
removeComment
Remove comment
Parameters
- commentId string - The ID of the comment
Return Type
- error? - Returns an empty response when the comment has been deleted
createComment
function createComment(CreateCommentRequest payload, map<string|string[]> headers, *CreateCommentQueries queries) returns CommentFull|errorCreate comment
Parameters
- payload CreateCommentRequest -
- queries *CreateCommentQueries - Queries to be sent with the request
Return Type
- CommentFull|error - Returns the newly created comment object. Not all available fields are returned by default. Use the fields query parameter to explicitly request any specific fields
getCollaboration
function getCollaboration(string collaborationId, map<string|string[]> headers, *GetCollaborationQueries queries) returns Collaboration|errorGet collaboration
Parameters
- collaborationId string - The ID of the collaboration
- queries *GetCollaborationQueries - Queries to be sent with the request
Return Type
- Collaboration|error - Returns a collaboration object
updateCollaboration
function updateCollaboration(string collaborationId, UpdateCollaborationRequest payload, map<string|string[]> headers) returns Collaboration|error?Update collaboration
Return Type
- Collaboration|error? - Returns an updated collaboration object unless the owner has changed
removeCollaboration
Remove collaboration
Parameters
- collaborationId string - The ID of the collaboration
Return Type
- error? - A blank response is returned if the collaboration was successfully deleted
listPendingCollaborations
function listPendingCollaborations(map<string|string[]> headers, *ListPendingCollaborationsQueries queries) returns CollaborationsOffsetPaginated|errorList pending collaborations
Parameters
- queries *ListPendingCollaborationsQueries - Queries to be sent with the request
Return Type
- CollaborationsOffsetPaginated|error - Returns a collection of pending collaboration objects. If the user has no pending collaborations, the collection will be empty
createCollaboration
function createCollaboration(CreateCollaborationRequest payload, map<string|string[]> headers, *CreateCollaborationQueries queries) returns Collaboration|errorCreate collaboration
Parameters
- payload CreateCollaborationRequest -
- queries *CreateCollaborationQueries - Queries to be sent with the request
Return Type
- Collaboration|error - Returns a new collaboration object
searchForContent
function searchForContent(map<string|string[]> headers, *SearchForContentQueries queries) returns SearchResultsResponse|errorSearch for content
Parameters
- queries *SearchForContentQueries - Queries to be sent with the request
Return Type
- SearchResultsResponse|error - Returns a collection of search results. If there are no matching search results, the
entriesarray will be empty
createTask
Create task
Parameters
- payload CreateTaskRequest -
getTask
Get task
Parameters
- taskId string - The ID of the task
updateTask
function updateTask(string taskId, UpdateTaskRequest payload, map<string|string[]> headers) returns Task|errorUpdate task
removeTask
Remove task
Parameters
- taskId string - The ID of the task
Return Type
- error? - Returns an empty response when the task was successfully deleted
listTaskAssignments
function listTaskAssignments(string taskId, map<string|string[]> headers) returns TaskAssignments|errorList task assignments
Parameters
- taskId 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
assignTask
function assignTask(AssignTaskRequest payload, map<string|string[]> headers) returns TaskAssignment|errorAssign task
Parameters
- payload AssignTaskRequest -
Return Type
- TaskAssignment|error - Returns a new task assignment object
getTaskAssignment
function getTaskAssignment(string taskAssignmentId, map<string|string[]> headers) returns TaskAssignment|errorGet task assignment
Parameters
- taskAssignmentId 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
updateTaskAssignment
function updateTaskAssignment(string taskAssignmentId, UpdateTaskAssignmentRequest payload, map<string|string[]> headers) returns TaskAssignment|errorUpdate task assignment
Parameters
- taskAssignmentId string - The ID of the task assignment
- payload UpdateTaskAssignmentRequest -
Return Type
- TaskAssignment|error - Returns the updated task assignment object
unassignTask
Unassign task
Parameters
- taskAssignmentId string - The ID of the task assignment
Return Type
- error? - Returns an empty response when the task assignment was successfully deleted
findFileForSharedLink
function findFileForSharedLink(FindFileForSharedLinkHeaders headers, *FindFileForSharedLinkQueries queries) returns FileFull|error?Find file for shared link
Parameters
- headers FindFileForSharedLinkHeaders - Headers to be sent with the request
- queries *FindFileForSharedLinkQueries - Queries to be sent with the request
Return Type
getSharedLinkForFile
function getSharedLinkForFile(string fileId, map<string|string[]> headers, *GetSharedLinkForFileQueries queries) returns FileFull|errorGet shared link for file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- queries *GetSharedLinkForFileQueries - Queries to be sent with the request
Return Type
addSharedLinkToFile
function addSharedLinkToFile(string fileId, AddSharedLinkToFileRequest payload, map<string|string[]> headers, *AddSharedLinkToFileQueries queries) returns FileFull|errorAdd shared link to file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload AddSharedLinkToFileRequest -
- queries *AddSharedLinkToFileQueries - Queries to be sent with the request
Return Type
updateSharedLinkOnFile
function updateSharedLinkOnFile(string fileId, UpdateSharedLinkOnFileRequest payload, map<string|string[]> headers, *UpdateSharedLinkOnFileQueries queries) returns FileFull|errorUpdate shared link on file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload UpdateSharedLinkOnFileRequest -
- queries *UpdateSharedLinkOnFileQueries - Queries to be sent with the request
Return Type
removeSharedLinkFromFile
function removeSharedLinkFromFile(string fileId, RemoveSharedLinkFromFileRequest payload, map<string|string[]> headers, *RemoveSharedLinkFromFileQueries queries) returns FileFull|errorRemove shared link from file
Parameters
- fileId string - The unique identifier that represents a file.
The ID for any file can be determined
by visiting a file in the web application
and copying the ID from the URL. For example,
for the URL
https://*.app.box.com/files/123thefile_idis123
- payload RemoveSharedLinkFromFileRequest -
- queries *RemoveSharedLinkFromFileQueries - Queries to be sent with the request
findFolderForSharedLink
function findFolderForSharedLink(FindFolderForSharedLinkHeaders headers, *FindFolderForSharedLinkQueries queries) returns FolderFull|error?Find folder for shared link
Parameters
- headers FindFolderForSharedLinkHeaders - Headers to be sent with the request
- queries *FindFolderForSharedLinkQueries - Queries to be sent with the request
Return Type
- FolderFull|error? - Returns a full folder resource if the shared link is valid and the user has access to it
getSharedLinkForFolder
function getSharedLinkForFolder(string folderId, map<string|string[]> headers, *GetSharedLinkForFolderQueries queries) returns FolderFull|errorGet shared link for folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- queries *GetSharedLinkForFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns the base representation of a folder with the additional shared link information
addSharedLinkToFolder
function addSharedLinkToFolder(string folderId, AddSharedLinkToFolderRequest payload, map<string|string[]> headers, *AddSharedLinkToFolderQueries queries) returns FolderFull|errorAdd shared link to folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload AddSharedLinkToFolderRequest -
- queries *AddSharedLinkToFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns the base representation of a folder with a new shared link attached
updateSharedLinkOnFolder
function updateSharedLinkOnFolder(string folderId, UpdateSharedLinkOnFolderRequest payload, map<string|string[]> headers, *UpdateSharedLinkOnFolderQueries queries) returns FolderFull|errorUpdate shared link on folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload UpdateSharedLinkOnFolderRequest -
- queries *UpdateSharedLinkOnFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns a basic representation of the folder, with the updated shared link attached
removeSharedLinkFromFolder
function removeSharedLinkFromFolder(string folderId, RemoveSharedLinkFromFolderRequest payload, map<string|string[]> headers, *RemoveSharedLinkFromFolderQueries queries) returns FolderFull|errorRemove shared link from folder
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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
- payload RemoveSharedLinkFromFolderRequest -
- queries *RemoveSharedLinkFromFolderQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns a basic representation of a folder, with the shared link removed
createWebLink
function createWebLink(CreateWebLinkRequest payload, map<string|string[]> headers) returns WebLink|errorCreate web link
Parameters
- payload CreateWebLinkRequest -
getWebLink
function getWebLink(string webLinkId, GetWebLinkHeaders headers) returns WebLink|errorGet web link
Parameters
- webLinkId string - The ID of the web link
- headers GetWebLinkHeaders (default {}) - Headers to be sent with the request
updateWebLink
function updateWebLink(string webLinkId, UpdateWebLinkRequest payload, map<string|string[]> headers) returns WebLink|errorUpdate web link
restoreWebLink
function restoreWebLink(string webLinkId, RestoreWebLinkRequest payload, map<string|string[]> headers, *RestoreWebLinkQueries queries) returns TrashWebLinkRestored|errorRestore web link
Parameters
- webLinkId string - The ID of the web link
- payload RestoreWebLinkRequest -
- queries *RestoreWebLinkQueries - Queries to be sent with the request
Return Type
- TrashWebLinkRestored|error - Returns a web link object when it has been restored
removeWebLink
Remove web link
Parameters
- webLinkId string - The ID of the web link
Return Type
- error? - An empty response will be returned when the web link was successfully deleted
getTrashedWebLink
function getTrashedWebLink(string webLinkId, map<string|string[]> headers, *GetTrashedWebLinkQueries queries) returns TrashWebLink|errorGet trashed web link
Parameters
- webLinkId string - The ID of the web link
- queries *GetTrashedWebLinkQueries - Queries to be sent with the request
Return Type
- TrashWebLink|error - Returns the web link that was trashed, including information about when the it was moved to the trash
permanentlyRemoveWebLink
Permanently remove web link
Parameters
- webLinkId string - The ID of the web link
Return Type
- error? - Returns an empty response when the web link was permanently deleted
findWebLinkForSharedLink
function findWebLinkForSharedLink(FindWebLinkForSharedLinkHeaders headers, *FindWebLinkForSharedLinkQueries queries) returns WebLink|error?Find web link for shared link
Parameters
- headers FindWebLinkForSharedLinkHeaders - Headers to be sent with the request
- queries *FindWebLinkForSharedLinkQueries - Queries to be sent with the request
Return Type
getSharedLinkForWebLink
function getSharedLinkForWebLink(string webLinkId, map<string|string[]> headers, *GetSharedLinkForWebLinkQueries queries) returns WebLink|errorGet shared link for web link
Parameters
- webLinkId string - The ID of the web link
- queries *GetSharedLinkForWebLinkQueries - Queries to be sent with the request
Return Type
addSharedLinkToWebLink
function addSharedLinkToWebLink(string webLinkId, AddSharedLinkToWebLinkRequest payload, map<string|string[]> headers, *AddSharedLinkToWebLinkQueries queries) returns WebLink|errorAdd shared link to web link
Parameters
- webLinkId string - The ID of the web link
- payload AddSharedLinkToWebLinkRequest -
- queries *AddSharedLinkToWebLinkQueries - Queries to be sent with the request
Return Type
updateSharedLinkOnWebLink
function updateSharedLinkOnWebLink(string webLinkId, UpdateSharedLinkOnWebLinkRequest payload, map<string|string[]> headers, *UpdateSharedLinkOnWebLinkQueries queries) returns WebLink|errorUpdate shared link on web link
Parameters
- webLinkId string - The ID of the web link
- payload UpdateSharedLinkOnWebLinkRequest -
- queries *UpdateSharedLinkOnWebLinkQueries - Queries to be sent with the request
Return Type
removeSharedLinkFromWebLink
function removeSharedLinkFromWebLink(string webLinkId, RemoveSharedLinkFromWebLinkRequest payload, map<string|string[]> headers, *RemoveSharedLinkFromWebLinkQueries queries) returns WebLink|errorRemove shared link from web link
Parameters
- webLinkId string - The ID of the web link
- payload RemoveSharedLinkFromWebLinkRequest -
- queries *RemoveSharedLinkFromWebLinkQueries - Queries to be sent with the request
Return Type
findAppItemForSharedLink
function findAppItemForSharedLink(FindAppItemForSharedLinkHeaders headers) returns AppItem|errorFind app item for shared link
Parameters
- headers FindAppItemForSharedLinkHeaders - Headers to be sent with the request
Return Type
listEnterpriseUsers
function listEnterpriseUsers(map<string|string[]> headers, *ListEnterpriseUsersQueries queries) returns Users|errorList enterprise users
Parameters
- queries *ListEnterpriseUsersQueries - Queries to be sent with the request
createUser
function createUser(CreateUserRequest payload, map<string|string[]> headers, *CreateUserQueries queries) returns UserFull|errorCreate user
Parameters
- payload CreateUserRequest -
- queries *CreateUserQueries - Queries to be sent with the request
getCurrentUser
function getCurrentUser(map<string|string[]> headers, *GetCurrentUserQueries queries) returns UserFull|errorGet current user
Parameters
- queries *GetCurrentUserQueries - Queries to be sent with the request
createJobsToTerminateUsersSession
function createJobsToTerminateUsersSession(CreateJobsToTerminateUsersSessionRequest payload, map<string|string[]> headers) returns SessionTerminationMessage|errorCreate jobs to terminate users session
Parameters
- payload CreateJobsToTerminateUsersSessionRequest -
Return Type
- SessionTerminationMessage|error - Returns a message about the request status
getUser
function getUser(string userId, map<string|string[]> headers, *GetUserQueries queries) returns UserFull|errorGet user
Parameters
- userId string - The ID of the user
- queries *GetUserQueries - Queries to be sent with the request
Return Type
updateUser
function updateUser(string userId, UpdateUserRequest payload, map<string|string[]> headers, *UpdateUserQueries queries) returns UserFull|errorUpdate user
Parameters
- userId string - The ID of the user
- payload UpdateUserRequest -
- queries *UpdateUserQueries - Queries to be sent with the request
deleteUser
function deleteUser(string userId, map<string|string[]> headers, *DeleteUserQueries queries) returns error?Delete user
Parameters
- userId string - The ID of the user
- queries *DeleteUserQueries - Queries to be sent with the request
Return Type
- error? - Removes the user and returns an empty response
getUserAvatar
Get user avatar
Parameters
- userId string - The ID of the user
Return Type
- byte[]|error - When an avatar can be found for the user the image data will be returned in the body of the response
addOrUpdateUserAvatar
function addOrUpdateUserAvatar(string userId, AddOrUpdateUserAvatarRequest payload, map<string|string[]> headers) returns UserAvatar|errorAdd or update user avatar
Return Type
- UserAvatar|error -
ok: Returns thepic_urlsobject with URLs to existing user avatars that were updated
deleteUserAvatar
Delete user avatar
Parameters
- userId string - The ID of the user
Return Type
- error? -
no_content: Removes the avatar and returns an empty response
transferOwnedFolders
function transferOwnedFolders(string userId, TransferOwnedFoldersRequest payload, map<string|string[]> headers, *TransferOwnedFoldersQueries queries) returns FolderFull|errorTransfer owned folders
Parameters
- userId string - The ID of the user
- payload TransferOwnedFoldersRequest -
- queries *TransferOwnedFoldersQueries - Queries to be sent with the request
Return Type
- FolderFull|error - Returns the information for the newly created destination folder
listUserEmailAliases
function listUserEmailAliases(string userId, map<string|string[]> headers) returns EmailAliases|errorList user's email aliases
Parameters
- userId string - The ID of the user
Return Type
- EmailAliases|error - Returns a collection of email aliases
createEmailAlias
function createEmailAlias(string userId, CreateEmailAliasRequest payload, map<string|string[]> headers) returns EmailAlias|errorCreate email alias
Return Type
- EmailAlias|error - Returns the newly created email alias object
removeEmailAlias
function removeEmailAlias(string userId, string emailAliasId, map<string|string[]> headers) returns error?Remove email alias
Return Type
- error? - Removes the alias and returns an empty response
listUserGroups
function listUserGroups(string userId, map<string|string[]> headers, *ListUserGroupsQueries queries) returns GroupMemberships|errorList user's groups
Parameters
- userId string - The ID of the user
- queries *ListUserGroupsQueries - Queries to be sent with the request
Return Type
- GroupMemberships|error - Returns a collection of membership objects. If there are no memberships, an empty collection will be returned
createUserInvite
function createUserInvite(CreateUserInviteRequest payload, map<string|string[]> headers, *CreateUserInviteQueries queries) returns Invite|errorCreate user invite
Parameters
- payload CreateUserInviteRequest -
- queries *CreateUserInviteQueries - Queries to be sent with the request
getUserInviteStatus
function getUserInviteStatus(string inviteId, map<string|string[]> headers, *GetUserInviteStatusQueries queries) returns Invite|errorGet user invite status
Parameters
- inviteId string - The ID of an invite
- queries *GetUserInviteStatusQueries - Queries to be sent with the request
listGroupsForEnterprise
function listGroupsForEnterprise(map<string|string[]> headers, *ListGroupsForEnterpriseQueries queries) returns Groups|errorList groups for enterprise
Parameters
- queries *ListGroupsForEnterpriseQueries - Queries to be sent with the request
Return Type
createGroup
function createGroup(CreateGroupRequest payload, map<string|string[]> headers, *CreateGroupQueries queries) returns GroupFull|errorCreate group
Parameters
- payload CreateGroupRequest -
- queries *CreateGroupQueries - Queries to be sent with the request
createJobsToTerminateUserGroupSession
function createJobsToTerminateUserGroupSession(CreateJobsToTerminateUserGroupSessionRequest payload, map<string|string[]> headers) returns SessionTerminationMessage|errorCreate jobs to terminate user group session
Parameters
Return Type
- SessionTerminationMessage|error - Returns a message about the request status
getGroup
function getGroup(string groupId, map<string|string[]> headers, *GetGroupQueries queries) returns GroupFull|errorGet group
Parameters
- groupId string - The ID of the group
- queries *GetGroupQueries - Queries to be sent with the request
updateGroup
function updateGroup(string groupId, UpdateGroupRequest payload, map<string|string[]> headers, *UpdateGroupQueries queries) returns GroupFull|errorUpdate group
Parameters
- groupId string - The ID of the group
- payload UpdateGroupRequest -
- queries *UpdateGroupQueries - Queries to be sent with the request
removeGroup
Remove group
Parameters
- groupId string - The ID of the group
Return Type
- error? - A blank response is returned if the group was successfully deleted
listMembersOfGroup
function listMembersOfGroup(string groupId, map<string|string[]> headers, *ListMembersOfGroupQueries queries) returns GroupMemberships|errorList members of group
Parameters
- groupId string - The ID of the group
- queries *ListMembersOfGroupQueries - Queries to be sent with the request
Return Type
- GroupMemberships|error - Returns a collection of membership objects. If there are no memberships, an empty collection will be returned
listGroupCollaborations
function listGroupCollaborations(string groupId, map<string|string[]> headers, *ListGroupCollaborationsQueries queries) returns CollaborationsOffsetPaginated|errorList group collaborations
Parameters
- groupId string - The ID of the group
- queries *ListGroupCollaborationsQueries - Queries to be sent with the request
Return Type
- CollaborationsOffsetPaginated|error - Returns a collection of collaboration objects. If there are no collaborations, an empty collection will be returned
addUserToGroup
function addUserToGroup(AddUserToGroupRequest payload, map<string|string[]> headers, *AddUserToGroupQueries queries) returns GroupMembership|errorAdd user to group
Parameters
- payload AddUserToGroupRequest -
- queries *AddUserToGroupQueries - Queries to be sent with the request
Return Type
- GroupMembership|error - Returns a new group membership object
getGroupMembership
function getGroupMembership(string groupMembershipId, map<string|string[]> headers, *GetGroupMembershipQueries queries) returns GroupMembership|errorGet group membership
Parameters
- groupMembershipId string - The ID of the group membership
- queries *GetGroupMembershipQueries - Queries to be sent with the request
Return Type
- GroupMembership|error - Returns the group membership object
updateGroupMembership
function updateGroupMembership(string groupMembershipId, UpdateGroupMembershipRequest payload, map<string|string[]> headers, *UpdateGroupMembershipQueries queries) returns GroupMembership|errorUpdate group membership
Parameters
- groupMembershipId string - The ID of the group membership
- payload UpdateGroupMembershipRequest -
- queries *UpdateGroupMembershipQueries - Queries to be sent with the request
Return Type
- GroupMembership|error - Returns a new group membership object
removeUserFromGroup
Remove user from group
Parameters
- groupMembershipId string - The ID of the group membership
Return Type
- error? - A blank response is returned if the membership was successfully deleted
listAllWebhooks
function listAllWebhooks(map<string|string[]> headers, *ListAllWebhooksQueries queries) returns Webhooks|errorList all webhooks
Parameters
- queries *ListAllWebhooksQueries - Queries to be sent with the request
createWebhook
function createWebhook(CreateWebhookRequest payload, map<string|string[]> headers) returns Webhook|errorCreate webhook
Parameters
- payload CreateWebhookRequest -
getWebhook
Get webhook
Parameters
- webhookId string - The ID of the webhook
updateWebhook
function updateWebhook(string webhookId, UpdateWebhookRequest payload, map<string|string[]> headers) returns Webhook|errorUpdate webhook
removeWebhook
Remove webhook
Parameters
- webhookId string - The ID of the webhook
Return Type
- error? - An empty response will be returned when the webhook was successfully deleted
updateAllSkillCardsOnFile
function updateAllSkillCardsOnFile(string skillId, UpdateAllSkillCardsOnFileRequest payload, map<string|string[]> headers) returns error?Update all Box Skill cards on file
Parameters
- skillId string - The ID of the skill to apply this metadata for
- payload UpdateAllSkillCardsOnFileRequest -
Return Type
- error? - Returns an empty response when the card has been successfully updated
listUserAndEnterpriseEvents
function listUserAndEnterpriseEvents(map<string|string[]> headers, *ListUserAndEnterpriseEventsQueries queries) returns Events|errorList user and enterprise events
Parameters
- queries *ListUserAndEnterpriseEventsQueries - Queries to be sent with the request
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_sizeparameter indicating how many events were returned in this chunk, as well as the nextstream_positionthat can be queried
getEventsLongPollEndpoint
function getEventsLongPollEndpoint(map<string|string[]> headers) returns RealtimeServers|errorGet 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
listAllCollections
function listAllCollections(map<string|string[]> headers, *ListAllCollectionsQueries queries) returns Collections|errorList all collections
Parameters
- queries *ListAllCollectionsQueries - Queries to be sent with the request
Return Type
- Collections|error - Returns all collections for the given user
listCollectionItems
function listCollectionItems(string collectionId, map<string|string[]> headers, *ListCollectionItemsQueries queries) returns ItemsOffsetPaginated|errorList collection items
Parameters
- collectionId string - The ID of the collection
- queries *ListCollectionItemsQueries - Queries to be sent with the request
Return Type
- ItemsOffsetPaginated|error - Returns an array of items in the collection
getCollectionByID
function getCollectionByID(string collectionId, map<string|string[]> headers) returns Collection|errorGet collection by ID
Parameters
- collectionId string - The ID of the collection
Return Type
- Collection|error - Returns an array of items in the collection
listRecentlyAccessedItems
function listRecentlyAccessedItems(map<string|string[]> headers, *ListRecentlyAccessedItemsQueries queries) returns RecentItems|errorList recently accessed items
Parameters
- queries *ListRecentlyAccessedItemsQueries - Queries to be sent with the request
Return Type
- RecentItems|error - Returns a list recent items access by a user
listRetentionPolicies
function listRetentionPolicies(map<string|string[]> headers, *ListRetentionPoliciesQueries queries) returns RetentionPolicies|errorList retention policies
Parameters
- queries *ListRetentionPoliciesQueries - Queries to be sent with the request
Return Type
- RetentionPolicies|error - Returns a list retention policies in the enterprise
createRetentionPolicy
function createRetentionPolicy(CreateRetentionPolicyRequest payload, map<string|string[]> headers) returns RetentionPolicy|errorCreate retention policy
Parameters
- payload CreateRetentionPolicyRequest -
Return Type
- RetentionPolicy|error - Returns a new retention policy object
getRetentionPolicy
function getRetentionPolicy(string retentionPolicyId, map<string|string[]> headers, *GetRetentionPolicyQueries queries) returns RetentionPolicy|errorGet retention policy
Parameters
- retentionPolicyId string - The ID of the retention policy
- queries *GetRetentionPolicyQueries - Queries to be sent with the request
Return Type
- RetentionPolicy|error - Returns the retention policy object
updateRetentionPolicy
function updateRetentionPolicy(string retentionPolicyId, UpdateRetentionPolicyRequest payload, map<string|string[]> headers) returns RetentionPolicy|errorUpdate retention policy
Parameters
- retentionPolicyId string - The ID of the retention policy
- payload UpdateRetentionPolicyRequest -
Return Type
- RetentionPolicy|error - Returns the updated retention policy object
deleteRetentionPolicy
function deleteRetentionPolicy(string retentionPolicyId, map<string|string[]> headers) returns error?Delete retention policy
Parameters
- retentionPolicyId string - The ID of the retention policy
Return Type
- error? - Returns an empty response when the policy has been deleted
listRetentionPolicyAssignments
function listRetentionPolicyAssignments(string retentionPolicyId, map<string|string[]> headers, *ListRetentionPolicyAssignmentsQueries queries) returns RetentionPolicyAssignments|errorList retention policy assignments
Parameters
- retentionPolicyId string - The ID of the retention policy
- queries *ListRetentionPolicyAssignmentsQueries - Queries to be sent with the request
Return Type
- RetentionPolicyAssignments|error - Returns a list of the retention policy assignments associated with the specified retention policy
assignRetentionPolicy
function assignRetentionPolicy(AssignRetentionPolicyRequest payload, map<string|string[]> headers) returns RetentionPolicyAssignment|errorAssign retention policy
Parameters
- payload AssignRetentionPolicyRequest -
Return Type
- RetentionPolicyAssignment|error - Returns a new retention policy assignment object
getRetentionPolicyAssignment
function getRetentionPolicyAssignment(string retentionPolicyAssignmentId, map<string|string[]> headers, *GetRetentionPolicyAssignmentQueries queries) returns RetentionPolicyAssignment|errorGet retention policy assignment
Parameters
- retentionPolicyAssignmentId string - The ID of the retention policy assignment
- queries *GetRetentionPolicyAssignmentQueries - Queries to be sent with the request
Return Type
- RetentionPolicyAssignment|error - Returns the retention policy assignment object
removeRetentionPolicyAssignment
function removeRetentionPolicyAssignment(string retentionPolicyAssignmentId, map<string|string[]> headers) returns error?Remove retention policy assignment
Parameters
- retentionPolicyAssignmentId string - The ID of the retention policy assignment
Return Type
- error? - Returns an empty response when the policy assignment is successfully deleted
getFilesUnderRetention
function getFilesUnderRetention(string retentionPolicyAssignmentId, map<string|string[]> headers, *GetFilesUnderRetentionQueries queries) returns FilesUnderRetention|errorGet files under retention
Parameters
- retentionPolicyAssignmentId string - The ID of the retention policy assignment
- queries *GetFilesUnderRetentionQueries - Queries to be sent with the request
Return Type
- FilesUnderRetention|error - Returns a list of files under retention that are associated with the specified retention policy assignment
getFileVersionsUnderRetention
function getFileVersionsUnderRetention(string retentionPolicyAssignmentId, map<string|string[]> headers, *GetFileVersionsUnderRetentionQueries queries) returns FilesUnderRetention|errorGet file versions under retention
Parameters
- retentionPolicyAssignmentId string - The ID of the retention policy assignment
- queries *GetFileVersionsUnderRetentionQueries - Queries to be sent with the request
Return Type
- FilesUnderRetention|error - Returns a list of file versions under retention that are associated with the specified retention policy assignment
listAllLegalHoldPolicies
function listAllLegalHoldPolicies(map<string|string[]> headers, *ListAllLegalHoldPoliciesQueries queries) returns LegalHoldPolicies|errorList all legal hold policies
Parameters
- queries *ListAllLegalHoldPoliciesQueries - Queries to be sent with the request
Return Type
- LegalHoldPolicies|error - Returns a list of legal hold policies
createLegalHoldPolicy
function createLegalHoldPolicy(CreateLegalHoldPolicyRequest payload, map<string|string[]> headers) returns LegalHoldPolicy|errorCreate legal hold policy
Parameters
- payload CreateLegalHoldPolicyRequest -
Return Type
- LegalHoldPolicy|error - Returns a new legal hold policy object
getLegalHoldPolicy
function getLegalHoldPolicy(string legalHoldPolicyId, map<string|string[]> headers) returns LegalHoldPolicy|errorGet legal hold policy
Parameters
- legalHoldPolicyId string - The ID of the legal hold policy
Return Type
- LegalHoldPolicy|error - Returns a legal hold policy object
updateLegalHoldPolicy
function updateLegalHoldPolicy(string legalHoldPolicyId, UpdateLegalHoldPolicyRequest payload, map<string|string[]> headers) returns LegalHoldPolicy|errorUpdate legal hold policy
Parameters
- legalHoldPolicyId string - The ID of the legal hold policy
- payload UpdateLegalHoldPolicyRequest -
Return Type
- LegalHoldPolicy|error - Returns a new legal hold policy object
removeLegalHoldPolicy
function removeLegalHoldPolicy(string legalHoldPolicyId, map<string|string[]> headers) returns error?Remove legal hold policy
Parameters
- legalHoldPolicyId string - The ID of the legal hold policy
Return Type
- error? - A blank response is returned if the policy was successfully deleted
listLegalHoldPolicyAssignments
function listLegalHoldPolicyAssignments(map<string|string[]> headers, *ListLegalHoldPolicyAssignmentsQueries queries) returns LegalHoldPolicyAssignments|errorList legal hold policy assignments
Parameters
- queries *ListLegalHoldPolicyAssignmentsQueries - Queries to be sent with the request
Return Type
- LegalHoldPolicyAssignments|error - Returns a list of legal hold policy assignments
assignLegalHoldPolicy
function assignLegalHoldPolicy(AssignLegalHoldPolicyRequest payload, map<string|string[]> headers) returns LegalHoldPolicyAssignment|errorAssign legal hold policy
Parameters
- payload AssignLegalHoldPolicyRequest -
Return Type
- LegalHoldPolicyAssignment|error - Returns a new legal hold policy assignment
getLegalHoldPolicyAssignment
function getLegalHoldPolicyAssignment(string legalHoldPolicyAssignmentId, map<string|string[]> headers) returns LegalHoldPolicyAssignment|errorGet legal hold policy assignment
Parameters
- legalHoldPolicyAssignmentId string - The ID of the legal hold policy assignment
Return Type
- LegalHoldPolicyAssignment|error - Returns a legal hold policy object
unassignLegalHoldPolicy
function unassignLegalHoldPolicy(string legalHoldPolicyAssignmentId, map<string|string[]> headers) returns error?Unassign legal hold policy
Parameters
- legalHoldPolicyAssignmentId string - The ID of the legal hold policy assignment
Return Type
- error? - A blank response is returned if the assignment was successfully deleted
listFilesOnLegalHold
function listFilesOnLegalHold(string legalHoldPolicyAssignmentId, map<string|string[]> headers, *ListFilesOnLegalHoldQueries queries) returns FilesOnHold|errorList files with current file versions for legal hold policy assignment
Parameters
- legalHoldPolicyAssignmentId string - The ID of the legal hold policy assignment
- queries *ListFilesOnLegalHoldQueries - Queries to be sent with the request
Return Type
- FilesOnHold|error - Returns the list of current file versions held under legal hold for a specific legal hold policy assignment
listFileVersionRetentions
function listFileVersionRetentions(map<string|string[]> headers, *ListFileVersionRetentionsQueries queries) returns FileVersionRetentions|errorList file version retentions
Parameters
- queries *ListFileVersionRetentionsQueries - Queries to be sent with the request
Return Type
- FileVersionRetentions|error - Returns a list of all file version retentions for the enterprise
listFileVersionsOnLegalHold
function listFileVersionsOnLegalHold(string legalHoldPolicyAssignmentId, map<string|string[]> headers, *ListFileVersionsOnLegalHoldQueries queries) returns FileVersionsOnHold|errorList previous file versions for legal hold policy assignment
Parameters
- legalHoldPolicyAssignmentId string - The ID of the legal hold policy assignment
- queries *ListFileVersionsOnLegalHoldQueries - Queries to be sent with the request
Return Type
- FileVersionsOnHold|error - Returns the list of previous file versions held under legal hold for a specific legal hold policy assignment
getRetentionOnFile
function getRetentionOnFile(string fileVersionRetentionId, map<string|string[]> headers) returns FileVersionRetention|errorGet retention on file
Parameters
- fileVersionRetentionId string - The ID of the file version retention
Return Type
- FileVersionRetention|error - Returns a file version retention object
getFileVersionLegalHold
function getFileVersionLegalHold(string fileVersionLegalHoldId, map<string|string[]> headers) returns FileVersionLegalHold|errorGet file version legal hold
Parameters
- fileVersionLegalHoldId string - The ID of the file version legal hold
Return Type
- FileVersionLegalHold|error - Returns the legal hold policy assignments for the file version
listFileVersionLegalHolds
function listFileVersionLegalHolds(map<string|string[]> headers, *ListFileVersionLegalHoldsQueries queries) returns FileVersionLegalHolds|errorList file version legal holds
Parameters
- queries *ListFileVersionLegalHoldsQueries - Queries to be sent with the request
Return Type
- FileVersionLegalHolds|error - Returns the list of file version legal holds for a specific legal hold policy
getShieldBarrier
function getShieldBarrier(string shieldInformationBarrierId, map<string|string[]> headers) returns ShieldInformationBarrier|errorGet shield information barrier with specified ID
Parameters
- shieldInformationBarrierId string - The ID of the shield information barrier
Return Type
- ShieldInformationBarrier|error - Returns the shield information barrier object
changeShieldBarrierStatus
function changeShieldBarrierStatus(ChangeShieldBarrierStatusRequest payload, map<string|string[]> headers) returns ShieldInformationBarrier|errorAdd changed status of shield information barrier with specified ID
Parameters
- payload ChangeShieldBarrierStatusRequest -
Return Type
- ShieldInformationBarrier|error - Returns the updated shield information barrier object
listShieldBarriers
function listShieldBarriers(map<string|string[]> headers, *ListShieldBarriersQueries queries) returns ShieldInformationBarriers|errorList shield information barriers
Parameters
- queries *ListShieldBarriersQueries - Queries to be sent with the request
Return Type
- ShieldInformationBarriers|error - Returns a paginated list of shield information barrier objects, empty list if currently no barrier
createShieldBarrier
function createShieldBarrier(CreateShieldBarrierRequest payload, map<string|string[]> headers) returns ShieldInformationBarrier|errorCreate shield information barrier
Parameters
- payload CreateShieldBarrierRequest -
Return Type
- ShieldInformationBarrier|error - Returns a new shield information barrier object
listShieldBarrierReports
function listShieldBarrierReports(map<string|string[]> headers, *ListShieldBarrierReportsQueries queries) returns ShieldInformationBarrierReports|errorList shield information barrier reports
Parameters
- queries *ListShieldBarrierReportsQueries - Queries to be sent with the request
Return Type
- ShieldInformationBarrierReports|error - Returns a paginated list of shield information barrier report objects
createShieldBarrierReport
function createShieldBarrierReport(ShieldInformationBarrierReference payload, map<string|string[]> headers) returns ShieldInformationBarrierReport|errorCreate shield information barrier report
Parameters
- payload ShieldInformationBarrierReference -
Return Type
- ShieldInformationBarrierReport|error - Returns the shield information barrier report information object
getShieldBarrierReport
function getShieldBarrierReport(string shieldInformationBarrierReportId, map<string|string[]> headers) returns ShieldInformationBarrierReport|errorGet shield information barrier report by ID
Parameters
- shieldInformationBarrierReportId string - The ID of the shield information barrier Report
Return Type
- ShieldInformationBarrierReport|error - Returns the shield information barrier report object
getShieldBarrierSegment
function getShieldBarrierSegment(string shieldInformationBarrierSegmentId, map<string|string[]> headers) returns ShieldInformationBarrierSegment|errorGet shield information barrier segment with specified ID
Parameters
- shieldInformationBarrierSegmentId string - The ID of the shield information barrier segment
Return Type
- ShieldInformationBarrierSegment|error - Returns the shield information barrier segment object
updateShieldBarrierSegment
function updateShieldBarrierSegment(string shieldInformationBarrierSegmentId, UpdateShieldBarrierSegmentRequest payload, map<string|string[]> headers) returns ShieldInformationBarrierSegment|errorUpdate shield information barrier segment with specified ID
Parameters
- shieldInformationBarrierSegmentId string - The ID of the shield information barrier segment
- payload UpdateShieldBarrierSegmentRequest -
Return Type
- ShieldInformationBarrierSegment|error - Returns the updated shield information barrier segment object
deleteShieldBarrierSegment
function deleteShieldBarrierSegment(string shieldInformationBarrierSegmentId, map<string|string[]> headers) returns error?Delete shield information barrier segment
Parameters
- shieldInformationBarrierSegmentId string - The ID of the shield information barrier segment
Return Type
- error? - Empty body in response
listShieldBarrierSegments
function listShieldBarrierSegments(map<string|string[]> headers, *ListShieldBarrierSegmentsQueries queries) returns ShieldInformationBarrierSegments|errorList shield information barrier segments
Parameters
- queries *ListShieldBarrierSegmentsQueries - Queries to be sent with the request
Return Type
- ShieldInformationBarrierSegments|error - Returns a paginated list of shield information barrier segment objects
createShieldBarrierSegment
function createShieldBarrierSegment(CreateShieldBarrierSegmentRequest payload, map<string|string[]> headers) returns ShieldInformationBarrierSegment|errorCreate shield information barrier segment
Parameters
- payload CreateShieldBarrierSegmentRequest -
Return Type
- ShieldInformationBarrierSegment|error - Returns a new shield information barrier segment object
getShieldBarrierSegmentMember
function getShieldBarrierSegmentMember(string shieldInformationBarrierSegmentMemberId, map<string|string[]> headers) returns ShieldInformationBarrierSegmentMember|errorGet shield information barrier segment member by ID
Parameters
- shieldInformationBarrierSegmentMemberId string - The ID of the shield information barrier segment Member
Return Type
- ShieldInformationBarrierSegmentMember|error - Returns the shield information barrier segment member object
deleteShieldBarrierSegmentMember
function deleteShieldBarrierSegmentMember(string shieldInformationBarrierSegmentMemberId, map<string|string[]> headers) returns error?Delete shield information barrier segment member by ID
Parameters
- shieldInformationBarrierSegmentMemberId string - The ID of the shield information barrier segment Member
Return Type
- error? - Returns an empty response if the segment member was deleted successfully
listShieldBarrierSegmentMembers
function listShieldBarrierSegmentMembers(map<string|string[]> headers, *ListShieldBarrierSegmentMembersQueries queries) returns ShieldInformationBarrierSegmentMembers|errorList shield information barrier segment members
Parameters
- queries *ListShieldBarrierSegmentMembersQueries - Queries to be sent with the request
Return Type
- ShieldInformationBarrierSegmentMembers|error - Returns a paginated list of shield information barrier segment member objects
createShieldBarrierSegmentMember
function createShieldBarrierSegmentMember(CreateShieldBarrierSegmentMemberRequest payload, map<string|string[]> headers) returns ShieldInformationBarrierSegmentMember|errorCreate shield information barrier segment member
Parameters
- payload CreateShieldBarrierSegmentMemberRequest -
Return Type
- ShieldInformationBarrierSegmentMember|error - Returns a new shield information barrier segment member object
getShieldBarrierRestriction
function getShieldBarrierRestriction(string shieldInformationBarrierSegmentRestrictionId, map<string|string[]> headers) returns ShieldInformationBarrierSegmentRestriction|errorGet shield information barrier segment restriction by ID
Parameters
- shieldInformationBarrierSegmentRestrictionId string - The ID of the shield information barrier segment Restriction
Return Type
- ShieldInformationBarrierSegmentRestriction|error - Returns the shield information barrier segment restriction object
deleteShieldBarrierRestriction
function deleteShieldBarrierRestriction(string shieldInformationBarrierSegmentRestrictionId, map<string|string[]> headers) returns error?Delete shield information barrier segment restriction by ID
Parameters
- shieldInformationBarrierSegmentRestrictionId string - The ID of the shield information barrier segment Restriction
Return Type
- error? - Empty body in response
listShieldBarrierRestrictions
function listShieldBarrierRestrictions(map<string|string[]> headers, *ListShieldBarrierRestrictionsQueries queries) returns ShieldInformationBarrierSegmentRestrictions|errorList shield information barrier segment restrictions
Parameters
- queries *ListShieldBarrierRestrictionsQueries - Queries to be sent with the request
Return Type
- ShieldInformationBarrierSegmentRestrictions|error - Returns a paginated list of shield information barrier segment restriction objects
createShieldBarrierRestriction
function createShieldBarrierRestriction(CreateShieldBarrierRestrictionRequest payload, map<string|string[]> headers) returns ShieldInformationBarrierSegmentRestriction|errorCreate shield information barrier segment restriction
Parameters
- payload CreateShieldBarrierRestrictionRequest -
Return Type
- ShieldInformationBarrierSegmentRestriction|error - Returns the newly created Shield Information Barrier Segment Restriction object
getDevicePin
function getDevicePin(string devicePinnerId, map<string|string[]> headers) returns DevicePinner|errorGet device pin
Parameters
- devicePinnerId string - The ID of the device pin
Return Type
- DevicePinner|error - Returns information about a single device pin
removeDevicePin
Remove device pin
Parameters
- devicePinnerId string - The ID of the device pin
Return Type
- error? - Returns an empty response when the pin has been deleted
listEnterpriseDevicePins
function listEnterpriseDevicePins(string enterpriseId, map<string|string[]> headers, *ListEnterpriseDevicePinsQueries queries) returns DevicePinners|errorList enterprise device pins
Parameters
- enterpriseId string - The ID of the enterprise
- queries *ListEnterpriseDevicePinsQueries - Queries to be sent with the request
Return Type
- DevicePinners|error - Returns a list of device pins for a given enterprise
listTermsOfServices
function listTermsOfServices(map<string|string[]> headers, *ListTermsOfServicesQueries queries) returns TermsOfServices|errorList terms of services
Parameters
- queries *ListTermsOfServicesQueries - Queries to be sent with the request
Return Type
- TermsOfServices|error - Returns a collection of terms of service text and settings for the enterprise
createTermsOfService
function createTermsOfService(CreateTermsOfServiceRequest payload, map<string|string[]> headers) returns TermsOfService|errorCreate terms of service
Parameters
- payload CreateTermsOfServiceRequest -
Return Type
- TermsOfService|error - Returns a new task object
getTermsOfService
function getTermsOfService(string termsOfServiceId, map<string|string[]> headers) returns TermsOfService|errorGet terms of service
Parameters
- termsOfServiceId string - The ID of the terms of service
Return Type
- TermsOfService|error - Returns a terms of service object
updateTermsOfService
function updateTermsOfService(string termsOfServiceId, UpdateTermsOfServiceRequest payload, map<string|string[]> headers) returns TermsOfService|errorUpdate terms of service
Parameters
- termsOfServiceId string - The ID of the terms of service
- payload UpdateTermsOfServiceRequest -
Return Type
- TermsOfService|error - Returns an updated terms of service object
listTermsOfServiceUserStatuses
function listTermsOfServiceUserStatuses(map<string|string[]> headers, *ListTermsOfServiceUserStatusesQueries queries) returns TermsOfServiceUserStatuses|errorList terms of service user statuses
Parameters
- queries *ListTermsOfServiceUserStatusesQueries - Queries to be sent with the request
Return Type
- TermsOfServiceUserStatuses|error - Returns a list of terms of service statuses
createTermsOfServiceStatusForNewUser
function createTermsOfServiceStatusForNewUser(CreateTermsOfServiceStatusForNewUserRequest payload, map<string|string[]> headers) returns TermsOfServiceUserStatus|errorCreate terms of service status for new user
Parameters
Return Type
- TermsOfServiceUserStatus|error - Returns a terms of service status object
updateTermsOfServiceUserStatus
function updateTermsOfServiceUserStatus(string termsOfServiceUserStatusId, UpdateTermsOfServiceUserStatusRequest payload, map<string|string[]> headers) returns TermsOfServiceUserStatus|errorUpdate terms of service status for existing user
Parameters
- termsOfServiceUserStatusId string - The ID of the terms of service status
- payload UpdateTermsOfServiceUserStatusRequest -
Return Type
- TermsOfServiceUserStatus|error - Returns the updated terms of service status object
listAllowedCollaborationDomains
function listAllowedCollaborationDomains(map<string|string[]> headers, *ListAllowedCollaborationDomainsQueries queries) returns CollaborationAllowlistEntries|errorList allowed collaboration domains
Parameters
- queries *ListAllowedCollaborationDomainsQueries - Queries to be sent with the request
Return Type
- CollaborationAllowlistEntries|error - Returns a collection of domains that are allowed for collaboration
addAllowedCollaborationDomain
function addAllowedCollaborationDomain(AddAllowedCollaborationDomainRequest payload, map<string|string[]> headers) returns CollaborationAllowlistEntry|errorAdd domain to list of allowed collaboration domains
Parameters
- payload AddAllowedCollaborationDomainRequest -
Return Type
- CollaborationAllowlistEntry|error - Returns a new entry on the list of allowed domains
getAllowedCollaborationDomain
function getAllowedCollaborationDomain(string collaborationWhitelistEntryId, map<string|string[]> headers) returns CollaborationAllowlistEntry|errorGet allowed collaboration domain
Parameters
- collaborationWhitelistEntryId string - The ID of the entry in the list
Return Type
- CollaborationAllowlistEntry|error - Returns an entry on the list of allowed domains
removeAllowedCollabDomain
function removeAllowedCollabDomain(string collaborationWhitelistEntryId, map<string|string[]> headers) returns error?Remove domain from list of allowed collaboration domains
Parameters
- collaborationWhitelistEntryId string - The ID of the entry in the list
Return Type
- error? - A blank response is returned if the entry was successfully deleted
listCollabDomainExemptUsers
function listCollabDomainExemptUsers(map<string|string[]> headers, *ListCollabDomainExemptUsersQueries queries) returns CollaborationAllowlistExemptTargets|errorList users exempt from collaboration domain restrictions
Parameters
- queries *ListCollabDomainExemptUsersQueries - Queries to be sent with the request
Return Type
- CollaborationAllowlistExemptTargets|error - Returns a collection of user exemptions
createCollabDomainExemptUser
function createCollabDomainExemptUser(CreateCollabDomainExemptUserRequest payload, map<string|string[]> headers) returns CollaborationAllowlistExemptTarget|errorCreate user exemption from collaboration domain restrictions
Parameters
- payload CreateCollabDomainExemptUserRequest -
Return Type
- CollaborationAllowlistExemptTarget|error - Returns a new exemption entry
getCollabDomainExemptUser
function getCollabDomainExemptUser(string collaborationWhitelistExemptTargetId, map<string|string[]> headers) returns CollaborationAllowlistExemptTarget|errorGet user exempt from collaboration domain restrictions
Parameters
- collaborationWhitelistExemptTargetId string - The ID of the exemption to the list
Return Type
- CollaborationAllowlistExemptTarget|error - Returns the user's exempted from the list of collaboration domains
removeCollabDomainExemptUser
function removeCollabDomainExemptUser(string collaborationWhitelistExemptTargetId, map<string|string[]> headers) returns error?Remove user from list of users exempt from domain restrictions
Parameters
- collaborationWhitelistExemptTargetId string - The ID of the exemption to the list
Return Type
- error? - A blank response is returned if the exemption was successfully deleted
listStoragePolicies
function listStoragePolicies(map<string|string[]> headers, *ListStoragePoliciesQueries queries) returns StoragePolicies|errorList storage policies
Parameters
- queries *ListStoragePoliciesQueries - Queries to be sent with the request
Return Type
- StoragePolicies|error - Returns a collection of storage policies
getStoragePolicy
function getStoragePolicy(string storagePolicyId, map<string|string[]> headers) returns StoragePolicy|errorGet storage policy
Parameters
- storagePolicyId string - The ID of the storage policy
Return Type
- StoragePolicy|error - Returns a storage policy object
listStoragePolicyAssignments
function listStoragePolicyAssignments(map<string|string[]> headers, *ListStoragePolicyAssignmentsQueries queries) returns StoragePolicyAssignments|errorList storage policy assignments
Parameters
- queries *ListStoragePolicyAssignmentsQueries - Queries to be sent with the request
Return Type
- StoragePolicyAssignments|error - Returns a collection of storage policies for the enterprise or user
assignStoragePolicy
function assignStoragePolicy(AssignStoragePolicyRequest payload, map<string|string[]> headers) returns StoragePolicyAssignment|errorAssign storage policy
Parameters
- payload AssignStoragePolicyRequest -
Return Type
- StoragePolicyAssignment|error - Returns the new storage policy assignment created
getStoragePolicyAssignment
function getStoragePolicyAssignment(string storagePolicyAssignmentId, map<string|string[]> headers) returns StoragePolicyAssignment|errorGet storage policy assignment
Parameters
- storagePolicyAssignmentId string - The ID of the storage policy assignment
Return Type
- StoragePolicyAssignment|error - Returns a storage policy assignment object
updateStoragePolicyAssignment
function updateStoragePolicyAssignment(string storagePolicyAssignmentId, UpdateStoragePolicyAssignmentRequest payload, map<string|string[]> headers) returns StoragePolicyAssignment|errorUpdate storage policy assignment
Parameters
- storagePolicyAssignmentId string - The ID of the storage policy assignment
- payload UpdateStoragePolicyAssignmentRequest -
Return Type
- StoragePolicyAssignment|error - Returns an updated storage policy assignment object
unassignStoragePolicy
function unassignStoragePolicy(string storagePolicyAssignmentId, map<string|string[]> headers) returns error?Unassign storage policy
Parameters
- storagePolicyAssignmentId string - The ID of the storage policy assignment
Return Type
- error? - Returns an empty response when the storage policy assignment is successfully deleted
createZipDownload
function createZipDownload(ZipDownloadRequest payload, map<string|string[]> headers) returns ZipDownload|errorCreate zip download
Parameters
- payload ZipDownloadRequest -
Return Type
- ZipDownload|error - If the
ziparchive 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
downloadZipArchive
function downloadZipArchive(string zipDownloadId, map<string|string[]> headers) returns byte[]|errorDownload zip archive
Parameters
- zipDownloadId string - The unique identifier that represent this
ziparchive
Return Type
- byte[]|error - Returns the content of the items requested for this download, formatted as a stream of files and folders in a
ziparchive
getZipDownloadStatus
function getZipDownloadStatus(string zipDownloadId, map<string|string[]> headers) returns ZipDownloadStatus|errorGet zip download status
Parameters
- zipDownloadId string - The unique identifier that represent this
ziparchive
Return Type
- ZipDownloadStatus|error - Returns the status of the
ziparchive that is being downloaded
cancelSignRequest
function cancelSignRequest(string signRequestId, SignRequestCancelRequest payload, map<string|string[]> headers) returns SignRequest|errorCancel Box Sign request
Return Type
- SignRequest|error - Returns a Sign Request object
resendSignRequest
Resend Box Sign request
Parameters
- signRequestId string - The ID of the signature request
Return Type
- error? - Returns an empty response when the API call was successful. The email notifications will be sent asynchronously
getSignRequestByID
function getSignRequestByID(string signRequestId, map<string|string[]> headers) returns SignRequest|errorGet Box Sign request by ID
Parameters
- signRequestId string - The ID of the signature request
Return Type
- SignRequest|error - Returns a signature request
listSignRequests
function listSignRequests(map<string|string[]> headers, *ListSignRequestsQueries queries) returns SignRequests|errorList Box Sign requests
Parameters
- queries *ListSignRequestsQueries - Queries to be sent with the request
Return Type
- SignRequests|error - Returns a collection of sign requests
createSignRequest
function createSignRequest(SignRequestCreateRequest payload, map<string|string[]> headers) returns SignRequest|errorCreate Box Sign request
Parameters
- payload SignRequestCreateRequest -
Return Type
- SignRequest|error - Returns a Box Sign request object
listWorkflows
function listWorkflows(map<string|string[]> headers, *ListWorkflowsQueries queries) returns Workflows|errorList workflows
Parameters
- queries *ListWorkflowsQueries - Queries to be sent with the request
startsWorkflowBasedOnRequestBody
function startsWorkflowBasedOnRequestBody(string workflowId, StartsWorkflowBasedOnRequestBodyRequest payload, map<string|string[]> headers) returns error?Starts workflow based on request body
Parameters
- workflowId string - The ID of the workflow
- payload StartsWorkflowBasedOnRequestBodyRequest -
Return Type
- error? - Starts the workflow
listSignTemplates
function listSignTemplates(map<string|string[]> headers, *ListSignTemplatesQueries queries) returns SignTemplates|errorList Box Sign templates
Parameters
- queries *ListSignTemplatesQueries - Queries to be sent with the request
Return Type
- SignTemplates|error - Returns a collection of templates
getSignTemplateByID
function getSignTemplateByID(string templateId, map<string|string[]> headers) returns SignTemplate|errorGet Box Sign template by ID
Parameters
- templateId string - The ID of a Box Sign template
Return Type
- SignTemplate|error - Returns details of a template
listSlackIntegrationMappings
function listSlackIntegrationMappings(map<string|string[]> headers, *ListSlackIntegrationMappingsQueries queries) returns IntegrationMappings|errorList Slack integration mappings
Parameters
- queries *ListSlackIntegrationMappingsQueries - Queries to be sent with the request
Return Type
- IntegrationMappings|error - Returns a collection of integration mappings
createSlackIntegrationMapping
function createSlackIntegrationMapping(IntegrationMappingSlackCreateRequest payload, map<string|string[]> headers) returns IntegrationMapping|errorCreate Slack integration mapping
Parameters
- payload IntegrationMappingSlackCreateRequest -
Return Type
- IntegrationMapping|error - Returns the created integration mapping
updateSlackIntegrationMapping
function updateSlackIntegrationMapping(string integrationMappingId, UpdateSlackIntegrationMappingRequest payload, map<string|string[]> headers) returns IntegrationMapping|errorUpdate Slack integration mapping
Parameters
- integrationMappingId string - An ID of an integration mapping
- payload UpdateSlackIntegrationMappingRequest - At least one of
box_itemandoptionsmust be provided
Return Type
- IntegrationMapping|error - Returns the updated integration mapping object
deleteSlackIntegrationMapping
function deleteSlackIntegrationMapping(string integrationMappingId, map<string|string[]> headers) returns error?Delete Slack integration mapping
Parameters
- integrationMappingId string - An ID of an integration mapping
Return Type
- error? - Empty body in response
listTeamsIntegrationMappings
function listTeamsIntegrationMappings(map<string|string[]> headers, *ListTeamsIntegrationMappingsQueries queries) returns IntegrationMappingsTeams|errorList Teams integration mappings
Parameters
- queries *ListTeamsIntegrationMappingsQueries - Queries to be sent with the request
Return Type
- IntegrationMappingsTeams|error - Returns a collection of integration mappings
createTeamsIntegrationMapping
function createTeamsIntegrationMapping(IntegrationMappingTeamsCreateRequest payload, map<string|string[]> headers) returns IntegrationMappingTeams|errorCreate Teams integration mapping
Parameters
- payload IntegrationMappingTeamsCreateRequest -
Return Type
- IntegrationMappingTeams|error - Returns the created integration mapping
updateTeamsIntegrationMapping
function updateTeamsIntegrationMapping(string integrationMappingId, UpdateTeamsIntegrationMappingRequest payload, map<string|string[]> headers) returns IntegrationMappingTeams|errorUpdate Teams integration mapping
Parameters
- integrationMappingId string - An ID of an integration mapping
- payload UpdateTeamsIntegrationMappingRequest -
Return Type
- IntegrationMappingTeams|error - Returns the updated integration mapping object
deleteTeamsIntegrationMapping
function deleteTeamsIntegrationMapping(string integrationMappingId, map<string|string[]> headers) returns error?Delete Teams integration mapping
Parameters
- integrationMappingId string - An ID of an integration mapping
Return Type
- error? - Empty body in response
askQuestion
Ask question
Parameters
- payload AiAsk -
Return Type
- AiResponseFull|error? - A successful response including the answer from the LLM
generateText
Generate text
Parameters
- payload AiTextGen -
Return Type
- AiResponse|error - A successful response including the answer from the LLM
getAIAgentDefaultConfiguration
function getAIAgentDefaultConfiguration(map<string|string[]> headers, *GetAIAgentDefaultConfigurationQueries queries) returns AiAgent|errorGet AI agent default configuration
Parameters
- queries *GetAIAgentDefaultConfigurationQueries - Queries to be sent with the request
Return Type
- AiAgent|error - A successful response including the default agent configuration. This response can be one of the following four objects: * AI agent for questions * AI agent for text generation * AI agent for freeform metadata extraction * AI agent for structured metadata extraction. The response depends on the agent configuration requested in this endpoint
extractMetadataFreeform
function extractMetadataFreeform(AiExtract payload, map<string|string[]> headers) returns AiResponse|errorExtract metadata (freeform)
Parameters
- payload AiExtract -
Return Type
- AiResponse|error - A response including the answer from the LLM
extractMetadataStructured
function extractMetadataStructured(AiExtractStructured payload, map<string|string[]> headers) returns AiExtractStructuredResponse|errorExtract metadata (structured)
Parameters
- payload AiExtractStructured -
Return Type
- AiExtractStructuredResponse|error - A successful response including the answer from the LLM
listAIAgents
function listAIAgents(map<string|string[]> headers, *ListAIAgentsQueries queries) returns AiMultipleAgentResponse|errorList AI agents
Parameters
- queries *ListAIAgentsQueries - Queries to be sent with the request
Return Type
- AiMultipleAgentResponse|error - A successful response including the agents list
createAIAgent
function createAIAgent(CreateAiAgent payload, map<string|string[]> headers) returns AiSingleAgentResponseFull|errorCreate AI agent
Parameters
- payload CreateAiAgent -
Return Type
- AiSingleAgentResponseFull|error - Definition of created AI agent
getAIAgentByAgentID
function getAIAgentByAgentID(string agentId, map<string|string[]> headers, *GetAIAgentByAgentIDQueries queries) returns AiSingleAgentResponseFull|errorGet AI agent by agent ID
Parameters
- agentId string - The agent id to get
- queries *GetAIAgentByAgentIDQueries - Queries to be sent with the request
Return Type
- AiSingleAgentResponseFull|error - A successful response including the agent
updateAIAgent
function updateAIAgent(string agentId, CreateAiAgent payload, map<string|string[]> headers) returns AiSingleAgentResponseFull|errorUpdate AI agent
Return Type
- AiSingleAgentResponseFull|error - Definition of created AI agent
deleteAIAgent
Delete AI agent
Parameters
- agentId string - The ID of the agent to delete
Return Type
- error? - A successful response with no content
createMetadataTaxonomy
function createMetadataTaxonomy(CreateMetadataTaxonomyRequest payload, map<string|string[]> headers) returns MetadataTaxonomy|errorCreate metadata taxonomy
Parameters
- payload CreateMetadataTaxonomyRequest -
Return Type
- MetadataTaxonomy|error - The schema representing the metadata taxonomy created
getMetadataTaxonomiesForNamespace
function getMetadataTaxonomiesForNamespace(string namespace, map<string|string[]> headers, *GetMetadataTaxonomiesForNamespaceQueries queries) returns MetadataTaxonomies|errorGet metadata taxonomies for namespace
Parameters
- namespace string - The namespace of the metadata taxonomy
- queries *GetMetadataTaxonomiesForNamespaceQueries - Queries to be sent with the request
Return Type
- MetadataTaxonomies|error - Returns all of the metadata taxonomies within a namespace and their corresponding schema
getMetadataTaxonomyByTaxonomyKey
function getMetadataTaxonomyByTaxonomyKey(string namespace, string taxonomyKey, map<string|string[]> headers) returns MetadataTaxonomy|errorGet metadata taxonomy by taxonomy key
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
Return Type
- MetadataTaxonomy|error - Returns the metadata taxonomy identified by the taxonomy key
removeMetadataTaxonomy
function removeMetadataTaxonomy(string namespace, string taxonomyKey, map<string|string[]> headers) returns error?Remove metadata taxonomy
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
Return Type
- error? - Returns an empty response when the metadata taxonomy is successfully deleted
updateMetadataTaxonomy
function updateMetadataTaxonomy(string namespace, string taxonomyKey, UpdateMetadataTaxonomyRequest payload, map<string|string[]> headers) returns MetadataTaxonomy|errorUpdate metadata taxonomy
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- payload UpdateMetadataTaxonomyRequest -
Return Type
- MetadataTaxonomy|error - The schema representing the updated metadata taxonomy
createMetadataTaxonomyLevels
function createMetadataTaxonomyLevels(string namespace, string taxonomyKey, MetadataTaxonomyLevel[] payload, map<string|string[]> headers) returns MetadataTaxonomyLevels|errorCreate metadata taxonomy levels
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- payload MetadataTaxonomyLevel[] -
Return Type
- MetadataTaxonomyLevels|error - Returns an array of all taxonomy levels
updateMetadataTaxonomyLevel
function updateMetadataTaxonomyLevel(string namespace, string taxonomyKey, int levelIndex, UpdateMetadataTaxonomyLevelRequest payload, map<string|string[]> headers) returns MetadataTaxonomyLevel|errorUpdate metadata taxonomy level
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- levelIndex int - The index of the metadata taxonomy level
- payload UpdateMetadataTaxonomyLevelRequest -
Return Type
- MetadataTaxonomyLevel|error - The updated taxonomy level
addMetadataTaxonomyLevel
function addMetadataTaxonomyLevel(string namespace, string taxonomyKey, UpdateMetadataTaxonomyLevelRequest payload, map<string|string[]> headers) returns MetadataTaxonomyLevels|errorAdd metadata taxonomy level
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- payload UpdateMetadataTaxonomyLevelRequest -
Return Type
- MetadataTaxonomyLevels|error - Returns an array of all taxonomy levels
deleteMetadataTaxonomyLevel
function deleteMetadataTaxonomyLevel(string namespace, string taxonomyKey, map<string|string[]> headers) returns MetadataTaxonomyLevels|errorDelete metadata taxonomy level
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
Return Type
- MetadataTaxonomyLevels|error - Returns an array of all taxonomy levels
listMetadataTaxonomyNodes
function listMetadataTaxonomyNodes(string namespace, string taxonomyKey, map<string|string[]> headers, *ListMetadataTaxonomyNodesQueries queries) returns MetadataTaxonomyNodes|errorList metadata taxonomy nodes
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- queries *ListMetadataTaxonomyNodesQueries - Queries to be sent with the request
Return Type
- MetadataTaxonomyNodes|error - Returns a list of the taxonomy nodes that match the specified parameters
createMetadataTaxonomyNode
function createMetadataTaxonomyNode(string namespace, string taxonomyKey, CreateMetadataTaxonomyNodeRequest payload, map<string|string[]> headers) returns MetadataTaxonomyNode|errorCreate metadata taxonomy node
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- payload CreateMetadataTaxonomyNodeRequest -
Return Type
- MetadataTaxonomyNode|error - The schema representing the taxonomy node created
getMetadataTaxonomyNodeByID
function getMetadataTaxonomyNodeByID(string namespace, string taxonomyKey, string nodeId, map<string|string[]> headers) returns MetadataTaxonomyNode|errorGet metadata taxonomy node by ID
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- nodeId string - The identifier of the metadata taxonomy node
Return Type
- MetadataTaxonomyNode|error - Returns the metadata taxonomy node that matches the identifier
removeMetadataTaxonomyNode
function removeMetadataTaxonomyNode(string namespace, string taxonomyKey, string nodeId, map<string|string[]> headers) returns error?Remove metadata taxonomy node
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- nodeId string - The identifier of the metadata taxonomy node
Return Type
- error? - Returns an empty response when the metadata taxonomy node is successfully deleted
updateMetadataTaxonomyNode
function updateMetadataTaxonomyNode(string namespace, string taxonomyKey, string nodeId, UpdateMetadataTaxonomyNodeRequest payload, map<string|string[]> headers) returns MetadataTaxonomyNode|errorUpdate metadata taxonomy node
Parameters
- namespace string - The namespace of the metadata taxonomy
- taxonomyKey string - The key of the metadata taxonomy
- nodeId string - The identifier of the metadata taxonomy node
- payload UpdateMetadataTaxonomyNodeRequest -
Return Type
- MetadataTaxonomyNode|error - The schema representing the updated taxonomy node
listTaxonomyFieldOptions
function listTaxonomyFieldOptions(string namespace, string templateKey, string fieldKey, map<string|string[]> headers, *ListTaxonomyFieldOptionsQueries queries) returns MetadataTaxonomyNodes|errorList metadata template's options for taxonomy field
Parameters
- namespace string - The namespace of the metadata taxonomy
- templateKey string - The name of the metadata template
- fieldKey string - The key of the metadata taxonomy field in the template
- queries *ListTaxonomyFieldOptionsQueries - Queries to be sent with the request
Return Type
- MetadataTaxonomyNodes|error - Returns a list of the taxonomy nodes that match the specified parameters
Records
box: AccessToken
A token that can be used to make authenticated API calls
Fields
- accessToken? string - The requested access token
- refreshToken? string - The refresh token for this access token, which can be used to request a new access token when the current one expires
- issuedTokenType? "urn:ietf:params:oauth:token-type:access_token" - The type of downscoped access token returned. This is only returned if an access token has been downscoped
- tokenType? "bearer" - The type of access token returned
- expiresIn? int - The time in seconds by which this token will expire
- restrictedTo? ResourceScope[] - The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources
box: AddAllowedCollaborationDomainRequest
Fields
- domain string - The domain to add to the list of allowed domains
- direction "inbound"|"outbound"|"both" - The direction in which to allow collaborations
box: AddClassificationData
The details of the classification to add
Fields
- staticConfig? AddClassificationDataStaticConfig - A static configuration for the classification
- 'key string - The label of the classification as shown in the web and mobile interfaces. This is the only field required to add a classification
box: AddClassificationDataStaticConfig
A static configuration for the classification
Fields
- classification? AddClassificationDataStaticConfigClassification - Additional details for the classification
box: AddClassificationDataStaticConfigClassification
Additional details for the classification
Fields
- classificationDefinition? string - A longer description of the classification
- colorID? int - An internal Box identifier used to assign a color to
a classification label.
Mapping between a
colorIDand 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
box: AddClassificationRequest
A single classification to add to the enterprise
Fields
- op "addEnumOption" - The type of change to perform on the classification object
- data AddClassificationData - The details of the classification to add
- fieldKey "Box__Security__Classification__Key" - Defines classifications available in the enterprise
box: AddClassificationToFileRequest
Fields
- boxSecurityClassificationKey? string - The name of the classification to apply to this file. To list the available classifications in an enterprise, use the classification API to retrieve the classification template which lists all available classification keys
box: AddClassificationToFolderRequest
Fields
- boxSecurityClassificationKey? string - The name of the classification to apply to this folder. To list the available classifications in an enterprise, use the classification API to retrieve the classification template which lists all available classification keys
box: AddFileSharedLink
The settings for the shared link to create on the file.
Use an empty object ({}) to use the default settings for shared
links
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? AddFileSharedLinkPermissions -
- unsharedAt? 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
box: AddFileSharedLinkPermissions
Fields
- canEdit? boolean - If the shared link allows for editing of files.
This can only be set when
accessis set toopenorcompany. This value can only betrueiscan_downloadis alsotrue
- canPreview? boolean - If the shared link allows for previewing of files.
This value is always
true. For shared links on folders this also applies to any items in the folder
- canDownload? boolean - If the shared link allows for downloading of files.
This can only be set when
accessis set toopenorcompany
box: AddFolderSharedLink
The settings for the shared link to create on the folder.
Use an empty object ({}) to use the default settings for shared
links
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? AddFolderSharedLinkPermissions -
- unsharedAt? 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
box: AddFolderSharedLinkPermissions
Fields
- canEdit? boolean - This value can only be
falsefor items with atypeoffolder
- canPreview? boolean - If the shared link allows for previewing of files.
This value is always
true. For shared links on folders this also applies to any items in the folder
- canDownload? boolean - If the shared link allows for downloading of files.
This can only be set when
accessis set toopenorcompany
box: AddInitialClassificationsRequest
Fields
- copyInstanceOnItemCopy? boolean - Determines if classifications are copied along when the file or folder is copied
- hidden? boolean - Determines if the classification template is hidden or available on web and mobile devices
- displayName "Classification" - The name of the template as shown in web and mobile interfaces
- scope "enterprise" - The scope in which to create the classifications. This should
be
enterpriseorenterprise_{id}whereidis the unique ID of the enterprise
- fields InitialClassificationsFields[] - The classification template requires exactly one field, which holds all the valid classification values
- templateKey "securityClassification-6VMVochwUWo" - Defines the list of metadata templates
box: AddOrUpdateUserAvatarRequest
Fields
- pic record { fileContent byte[], fileName string } - The image file to be uploaded to Box.
Accepted file extensions are
.jpgor.png. The maximum file size is 1MB
box: AddSharedLinkToFileQueries
Represents the Queries record for the operation: addSharedLinkToFile
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: AddSharedLinkToFileRequest
Fields
- sharedLink? AddFileSharedLink -
box: AddSharedLinkToFolderQueries
Represents the Queries record for the operation: addSharedLinkToFolder
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: AddSharedLinkToFolderRequest
Fields
- sharedLink? AddFolderSharedLink -
box: AddSharedLinkToWebLinkQueries
Represents the Queries record for the operation: addSharedLinkToWebLink
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: AddSharedLinkToWebLinkRequest
Fields
- sharedLink? AddWebLinkSharedLink -
box: AddUserToGroupQueries
Represents the Queries record for the operation: addUserToGroup
Fields
- fields? string[] - 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
box: AddUserToGroupRequest
Fields
- role? "member"|"admin" - The role of the user in the group
- configurablePermissions? record { boolean... }? - 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 ofnullfor this object will disable all configurable permissions. Specifying permissions will set them accordingly, omitted permissions will be enabled by default
- user GroupMembershipsUser - The user to add to the group
- group GroupMembershipsGroup - The group to add the user to
box: AddWebLinkSharedLink
The settings for the shared link to create on the web link.
Use an empty object ({}) to use the default settings for shared
links
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? AddWebLinkSharedLinkPermissions -
- unsharedAt? 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
box: AddWebLinkSharedLinkPermissions
Fields
- canEdit? boolean - This value can only be
trueistypeisfile
- canPreview? boolean - If the shared link allows for previewing of files.
This value is always
true. For shared links on folders this also applies to any items in the folder
- canDownload? boolean - If the shared link allows for downloading of files.
This can only be set when
accessis set toopenorcompany
box: AiAgentAsk
The AI agent used to handle queries
Fields
- longTextMulti? AiAgentLongTextTool -
- longText? AiAgentLongTextTool -
- basicImage? AiAgentBasicTextTool -
- spreadsheet? AiAgentSpreadsheetTool - The AI agent tool used to handle spreadsheets and tabular data
- basicImageMulti? AiAgentBasicTextTool -
- 'type "ai_agent_ask" - The type of AI agent used to handle queries
- basicTextMulti? AiAgentBasicTextTool -
- basicText? AiAgentBasicTextTool -
box: AiAgentBasicGenTool
AI agent basic tool used to generate text
Fields
- Fields Included from *AiAgentLongTextToolTextGen
- embeddings AiAgentLongTextToolTextGen_embeddings
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- contentTemplate? string - How the content should be included in a request to the LLM.
Input for
{content}is optional, depending on the use.
box: AiAgentBasicTextTool
AI agent processor used to handle basic text
Fields
- Fields Included from *AiAgentBasicTextToolBase
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- systemMessage? string - System messages try to help the LLM "understand" its role and what it is supposed to do.
- promptTemplate? string - The prompt template contains contextual information of the request and the user prompt.
When passing
prompt_templateparameters, you must include inputs for{user_question}and{content}.{current_date}is optional, depending on the use.
box: AiAgentBasicTextToolBase
AI agent processor used to handle basic text
Fields
- numTokensForCompletion? int - The number of tokens for completion
- llmEndpointParams? AiLlmEndpointParams -
- model? string - The model used for the AI agent for basic text. For specific model values, see the available models list
box: AiAgentBasicTextToolTextGen
AI agent processor used to handle basic text
Fields
- Fields Included from *AiAgentBasicTextToolBase
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- systemMessage? string - System messages aim at helping the LLM understand its role and what it is supposed to do.
The input for
{current_date}is optional, depending on the use.
- promptTemplate? string - The prompt template contains contextual information of the request and the user prompt.
When using the
prompt_templateparameter, you must include input for{user_question}. Inputs for{current_date}and{content}are optional, depending on the use.
box: AiAgentExtract
The AI agent to be used for extraction
Fields
- longText? AiAgentLongTextTool -
- basicImage? AiAgentBasicTextTool -
- 'type "ai_agent_extract" - The type of AI agent to be used for extraction
- basicText? AiAgentBasicTextTool -
box: AiAgentExtractStructured
The AI agent to be used for structured extraction
Fields
- longText? AiAgentLongTextTool -
- basicImage? AiAgentBasicTextTool -
- 'type "ai_agent_extract_structured" - The type of AI agent to be used for extraction
- basicText? AiAgentBasicTextTool -
box: AiAgentInfo
The information on the models and processors used in the request
Fields
- models? AiAgentInfoModels[] - The models used for the request
- processor? string - The processor used for the request
box: AiAgentInfoModels
Fields
- supportedPurpose? string - The supported purpose utilized by the model used for the request
- provider? string - The provider that owns the model used for the request
- name? string - The name of the model used for the request
box: AiAgentLongTextTool
AI agent processor used to to handle longer text
Fields
- Fields Included from *AiAgentBasicTextTool
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- embeddings? AiAgentLongTextToolTextGen_embeddings -
box: AiAgentLongTextToolTextGen
AI agent processor used to to handle longer text
Fields
- Fields Included from *AiAgentBasicTextToolTextGen
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- embeddings? AiAgentLongTextToolTextGen_embeddings -
box: AiAgentLongTextToolTextGen_embeddings
Fields
- model? string - The model used for the AI agent for calculating embeddings.
- strategy? AiAgentLongTextToolTextGen_embeddings_strategy -
box: AiAgentLongTextToolTextGen_embeddings_strategy
Fields
- id? string - The strategy used for the AI agent for calculating embeddings.
- numTokensPerChunk? int - The number of tokens per chunk.
box: AiAgentReference
The AI agent used to handle queries
Fields
- id string - The ID of an Agent. This can be a numeric ID for custom agents (for example,
14031) or a unique identifier for pre-built agents (for example,enhanced_extract_agentfor the Enhanced Extract Agent)
- 'type "ai_agent_id" - The type of AI agent used to handle queries
box: AiAgentSpreadsheetTool
The AI agent tool used to handle spreadsheets and tabular data
Fields
- numTokensForCompletion? int - The number of tokens for completion
- llmEndpointParams? AiLlmEndpointParams -
- model? string - The model used for the AI agent for spreadsheets. For specific model values, see the available models list
box: AiAgentTextGen
The AI agent used for generating text
Fields
- basicGen? AiAgentBasicGenTool -
- 'type "ai_agent_text_gen" - The type of AI agent used for generating text
box: AiAsk
AI ask request object
Fields
- mode "multiple_item_qa"|"single_item_qa" - Box AI handles text documents with text representations up to 2MB in size, or a maximum of 25 files,
whichever comes first. If the text file size exceeds 2MB, the first 2MB of text representation will be processed.
Box AI handles image documents with a resolution of 1024 x 1024 pixels, with a maximum of 5 images or 5 pages
for multi-page images. If the number of image or image pages exceeds 5, the first 5 images or pages will
be processed. If you set mode parameter to
single_item_qa, the items array can have one element only. Currently Box AI does not support multi-modal requests. If both images and text are sent Box AI will only process the text
- includeCitations? boolean - A flag to indicate whether citations should be returned
- dialogueHistory? AiDialogueHistory[] - The history of prompts and answers previously passed to the LLM. This provides additional context to the LLM in generating the response
- prompt string - The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters
- items AiItemAsk[] - The items to be processed by the LLM, often files.
To search across and ask questions about the contents of a Box Hub,
pass a single item with
typeset tohubs. See the itemtypeproperty for details
- aiAgent? AiAskAgent -
box: AiCitation
The citation of the LLM's answer reference
Fields
- name? string - The name of the item
- id? string - The id of the item
- 'type? "file" - The type of the item
- content? string - The specific content from where the answer was referenced
box: AiDialogueHistory
A context object that can hold prior prompts and answers
Fields
- answer? string - The answer previously provided by the LLM
- createdAt? string - The ISO date formatted timestamp of when the previous answer to the prompt was created
- prompt? string - The prompt previously provided by the client and answered by the LLM
box: AiExtract
AI metadata freeform extraction request object
Fields
- prompt string - The prompt provided to a Large Language Model (LLM) in the request. The prompt can be up to 10000 characters long and it can be an XML or a JSON schema
- items AiItemBase[] - The items that LLM will process. Currently, you can use files only
- aiAgent? AiExtractAgent -
box: AiExtractFieldOption
An option for an AI extract field
Fields
- 'key string - A unique identifier for the option
box: AiExtractResponse
AI extract response. The content of this response may vary depending on the requested configuration
box: AiExtractStructured
AI Extract Structured Request object
Fields
- taxonomySources? AiTaxonomySource[] - The taxonomy sources to be used for the structured extraction. They can either be an existing file or a taxonomy.
For your request to work,
fieldsmust also be provided.taxonomy_sourcesis not supported withmetadata_template
- metadataTemplate? AiExtractStructuredMetadataTemplate -
- includeReference? boolean - A flag to indicate whether references for every extracted field should be returned. References and bounding boxes show where the agent extracted the metadata from. They help you check for accuracy and fix any mistakes. References are short, exact quotes from the original document used to verify results. Bounding boxes highlight the specific areas on the page where that text is found
- fields? AiExtractStructuredFields[] - The fields to be extracted from the provided items.
For your request to work, you must provide either
metadata_templateorfields, but not both
- items AiItemBase[] - The items to be processed by the LLM. Currently you can use files only
- aiAgent? AiExtractStructuredAgent -
- includeConfidenceScore? boolean - A flag to indicate whether confidence scores for every extracted field should be returned. Estimates the likelihood that an extracted metadata field value is accurate and correct. Displays a numerical and categorical confidence score to help users and automated systems quickly determine extraction reliability
box: AiExtractStructuredFields
The fields to be extracted from the provided items
Fields
- displayName? string - The display name of the field
- options? AiExtractStructuredOptions[] - A list of options for this field. This is most often used in combination with the
enumandmultiSelectfield types
- namespace? string - The namespace of the taxonomy source. Required if using
taxonomytype field from an existing taxonomy
- description? string - A description of the field
- optionsRules? AiOptionsRules -
- taxonomyKey? string - The identifier for a taxonomy, which corresponds to the
keyof the taxonomy source. Required if usingtaxonomytype field
- 'type? string - The type of the field. It can include but is not limited to
string,float,date,enum,multiSelect,taxonomy,struct, andtable
- fields? AiExtractSubField[] - The nested fields for this field. Used with
structandtablefield types to define the nested structure
- prompt? string - The context about the key that may include how to find and format it
- 'key string - A unique identifier for the field
box: AiExtractStructuredMetadataTemplate
The metadata template containing the fields to extract.
For your request to work, you must provide either metadata_template or fields, but not both
Fields
- templateKey? string - The name of the metadata template
- scope? string - The scope of the metadata template that can either be global or
enterprise.
- The global scope is used for templates that are available to any Box enterprise.
- The enterprise scope represents templates created within a specific enterprise, containing the ID of that enterprise
- 'type? "metadata_template" - Value is always
metadata_template
box: AiExtractStructuredOptions
Fields
- 'key string - A unique identifier for the option
box: AiExtractStructuredResponse
AI extract structured response
Fields
- reference? record {} - The reference for each extracted field as a JSON dictionary. This can be empty if no field could be extracted
- aiAgentInfo? AiAgentInfo -
- completionReason? string - The reason the response finishes
- answer AiExtractResponse - AI extract response. The content of this response may vary depending on the requested configuration
- confidenceScore? record {} - The confidence score levels and numeric values for each extracted field as a JSON dictionary. This can be empty if no field could be extracted
- createdAt string - The ISO date formatted timestamp of when the answer to the prompt was created
box: AiExtractSubField
A nested field definition for structured and table field types used in AI extraction
Fields
- displayName? string - The display name of the nested field
- options? AiExtractFieldOption[] - A list of options for this nested field. Used with
enumandmultiSelecttypes
- description? string - A description of the nested field
- 'type? string - The type of the nested field. Allowed types include
string,float,date,number,text,boolean,enumandmultiSelect
- prompt? string - Context about the nested field that may include how to find and how to format it
- 'key string - A unique identifier for the nested field
box: AiItemAsk
The item to be processed by the LLM for ask requests
Fields
- id string - The ID of the file, or the ID of the Box Hub when
typeishubs
- 'type "file"|"hubs" - The type of the item. Use
fileto ask a question about a file, orhubsto search across and ask a question about the entire contents of a Box Hub. Ahubsitem must be the only item in the request
- content? string - The content of the item, often the text representation
box: AiItemBase
The item to be processed by the LLM
Fields
- id string - The ID of the file
- 'type "file" - The type of the item. Currently the value can be
fileonly
- content? string - The content of the item, often the text representation
box: AiLlmEndpointParamsAWS
AI LLM endpoint params AWS object
Fields
- topP? decimal? - An alternative to sampling with temperature, called nucleus sampling, where the model considers the results
of the tokens with
top_pprobability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both
- temperature? decimal? - What sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random,
while lower values like 0.2 will make it more focused and deterministic.
We generally recommend altering this or
top_pbut not both
- 'type "aws_params" - The type of the AI LLM endpoint params object for AWS. This parameter is required
box: AiLlmEndpointParamsGoogle
AI LLM endpoint params Google object
Fields
- topP? decimal? -
Top-Pchanges how the model selects tokens for output. Tokens are selected from the most (seetop-K) to least probable until the sum of their probabilities equals thetop-Pvalue
- topK? decimal? -
Top-Kchanges how the model selects tokens for output. A lowtop-Kmeans the next selected token is the most probable among all tokens in the model's vocabulary (also called greedy decoding), while a hightop-Kmeans that the next token is selected from among the three most probable tokens by using temperature
- temperature? decimal? - The temperature is used for sampling during response generation, which occurs when
top-Pandtop-Kare applied. Temperature controls the degree of randomness in the token selection
- 'type "google_params" - The type of the AI LLM endpoint params object for Google. This parameter is required
box: AiLlmEndpointParamsIBM
AI LLM endpoint params IBM object
Fields
- topP? decimal? - An alternative to sampling with temperature, called nucleus sampling, where the model considers the results
of the tokens with
top_pprobability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both
- topK? decimal? -
Top-Kchanges how the model selects tokens for output. A lowtop-Kmeans the next selected token is the most probable among all tokens in the model's vocabulary (also called greedy decoding), while a hightop-Kmeans that the next token is selected from among the three most probable tokens by using temperature
- temperature? decimal? - What sampling temperature to use, between 0 and 1. Higher values like 0.8 will make the output more random,
while lower values like 0.2 will make it more focused and deterministic.
We generally recommend altering this or
top_pbut not both
- 'type "ibm_params" - The type of the AI LLM endpoint params object for IBM. This parameter is required
box: AiLlmEndpointParamsOpenAi
AI LLM endpoint params OpenAI object
Fields
- topP? decimal? - An alternative to sampling with temperature, called nucleus sampling, where the model considers the results
of the tokens with
top_pprobability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both
- frequencyPenalty? decimal? - A number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim
- stop? string? - Up to 4 sequences where the API will stop generating further tokens
- presencePenalty? decimal? - A number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics
- temperature? decimal? - What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,
while lower values like 0.2 will make it more focused and deterministic.
We generally recommend altering this or
top_pbut not both
- 'type "openai_params" - The type of the AI LLM endpoint params object for OpenAI. This parameter is required
box: AiMultipleAgentResponse
List of AI Agents with pagination
Fields
- Fields Included from *AiMultipleAgentResponsePart1
- Fields Included from *AiMultipleAgentResponsePart12
- entries AiSingleAgentResponseFull[]
- anydata...
- entries AiSingleAgentResponseFull[] -
box: AiMultipleAgentResponsePart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: AiMultipleAgentResponsePart12
Fields
- entries? AiSingleAgentResponseFull[] - The list of AI Agents.
box: AiOptionsRules
An object for a taxonomy type template field containing configuration for taxonomy options. Required if using taxonomy type field
Fields
- multiSelect? boolean - Indicates whether the field is a multi-select field. If true, the field can have multiple values
- selectableLevels? int[] - The selectable levels for the field. This is used to limit the levels of the taxonomy that can be selected
box: AiResponse
AI response
Fields
- aiAgentInfo? AiAgentInfo -
- completionReason? string - The reason the response finishes
- answer string - The answer provided by the LLM
- createdAt string - The ISO date formatted timestamp of when the answer to the prompt was created
box: AiResponseFull
AI ask response
Fields
- Fields Included from *AiResponse
- aiAgentInfo AiAgentInfo
- completionReason string
- answer string
- createdAt string
- anydata...
- citations? AiCitation[] - The citations of the LLM's answer reference.
box: AiSingleAgentResponse
Standard representation of an AI Agent instance
Fields
- accessState string - The state of the AI Agent. Possible values are:
enabled,disabled, andenabled_for_selected_users
- allowedEntities? AiAgentAllowedEntity[] - List of allowed users or groups
- origin string - The provider of the AI Agent
- name string - The name of the AI Agent
- modifiedBy? UserBase - The user who most recently modified this agent
- createdAt? string - The ISO date-time formatted timestamp of when this AI agent was created
- id string - The unique identifier of the AI Agent
- 'type? "ai_agent" - The type of agent used to handle queries
- modifiedAt? string - The ISO date-time formatted timestamp of when this AI agent was recently modified
- createdBy? UserBase - The user who created this agent
- iconReference? string - The icon reference of the AI Agent
box: AiSingleAgentResponseFull
Full representation of an AI Agent instance
Fields
- Fields Included from *AiSingleAgentResponse
- extract? AiStudioAgentExtractResponse - The AI agent to be used for metadata extraction
- ask? AiStudioAgentAskResponse - The AI agent to be used to ask questions
- textGen? AiStudioAgentTextGenResponse -
box: AiStudioAgentAsk
The AI agent to be used to handle queries
Fields
- longTextMulti? AiStudioAgentLongTextTool -
- longText? AiStudioAgentLongTextTool -
- suggestedQuestions? string[] - Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed
- basicImage? AiStudioAgentBasicTextTool -
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- spreadsheet? AiStudioAgentSpreadsheetTool - The AI agent tool used to handle spreadsheets and tabular data
- description string - The description of the AI agent
- basicImageMulti? AiStudioAgentBasicTextTool -
- 'type "ai_agent_ask" - The type of AI agent used to handle queries
- basicTextMulti? AiStudioAgentBasicTextTool -
- customInstructions? string? - Custom instructions for the AI agent
- basicText? AiStudioAgentBasicTextTool -
box: AiStudioAgentAskResponse
The AI agent to be used to ask questions
Fields
- longTextMulti? AiStudioAgentLongTextToolResponse -
- longText? AiStudioAgentLongTextToolResponse -
- suggestedQuestions? string[] - Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed
- basicImage? AiStudioAgentBasicTextToolResponse -
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- spreadsheet? AiStudioAgentSpreadsheetToolResponse - The AI agent tool used to handle spreadsheets and tabular data
- description string - The description of the AI agent
- basicImageMulti? AiStudioAgentBasicTextToolResponse -
- 'type "ai_agent_ask" - The type of AI agent used to ask questions
- basicTextMulti? AiStudioAgentBasicTextToolResponse -
- customInstructions? string? - Custom instructions for the AI agent
- basicText? AiStudioAgentBasicTextToolResponse -
box: AiStudioAgentBasicGenTool
AI agent basic tool used to generate text
Fields
- Fields Included from *AiAgentBasicGenTool
- contentTemplate string
- embeddings AiAgentLongTextToolTextGen_embeddings
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- isCustomInstructionsIncluded? boolean - True if system message contains custom instructions placeholder, false otherwise.
box: AiStudioAgentBasicGenToolResponse
AI agent basic tool used to generate text
Fields
- Fields Included from *AiStudioAgentBasicGenTool
- isCustomInstructionsIncluded boolean
- contentTemplate string
- embeddings AiAgentLongTextToolTextGen_embeddings
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- warnings? string[] - Warnings concerning tool.
box: AiStudioAgentBasicTextTool
AI agent processor used to handle basic text
Fields
- Fields Included from *AiAgentBasicTextTool
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- isCustomInstructionsIncluded? boolean - True if system message contains custom instructions placeholder, false otherwise.
box: AiStudioAgentBasicTextToolResponse
AI agent processor used to handle basic text
Fields
- Fields Included from *AiStudioAgentBasicTextTool
- warnings? string[] - Warnings concerning tool.
box: AiStudioAgentExtract
The AI agent to be used for metadata extraction
Fields
- longText? AiStudioAgentLongTextTool -
- basicImage? AiStudioAgentBasicTextTool -
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- description string - The description of the AI agent
- 'type "ai_agent_extract" - The type of AI agent to be used for metadata extraction
- customInstructions? string? - Custom instructions for the AI agent
- basicText? AiStudioAgentBasicTextTool -
box: AiStudioAgentExtractResponse
The AI agent to be used for metadata extraction
Fields
- longText? AiStudioAgentLongTextToolResponse -
- basicImage? AiStudioAgentBasicTextToolResponse -
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- description string - The description of the AI agent
- 'type "ai_agent_extract" - The type of AI agent to be used for metadata extraction
- customInstructions? string? - Custom instructions for the AI agent
- basicText? AiStudioAgentBasicTextToolResponse -
box: AiStudioAgentLongTextTool
AI agent processor used to to handle longer text
Fields
- Fields Included from *AiAgentLongTextTool
- embeddings AiAgentLongTextToolTextGen_embeddings
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- isCustomInstructionsIncluded? boolean - True if system message contains custom instructions placeholder, false otherwise.
box: AiStudioAgentLongTextToolResponse
AI agent processor used to to handle longer text
Fields
- Fields Included from *AiStudioAgentLongTextTool
- isCustomInstructionsIncluded boolean
- embeddings AiAgentLongTextToolTextGen_embeddings
- systemMessage string
- promptTemplate string
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- warnings? string[] - Warnings concerning tool.
box: AiStudioAgentSpreadsheetTool
The AI agent tool used to handle spreadsheets and tabular data
Fields
- Fields Included from *AiAgentSpreadsheetTool
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
box: AiStudioAgentSpreadsheetToolResponse
The AI agent tool used to handle spreadsheets and tabular data
Fields
- Fields Included from *AiStudioAgentSpreadsheetTool
- numTokensForCompletion int
- llmEndpointParams AiLlmEndpointParams
- model string
- anydata...
- warnings? string[] - Warnings concerning tool.
box: AiStudioAgentTextGen
The AI agent to be used to generate text
Fields
- basicGen? AiStudioAgentBasicGenTool -
- suggestedQuestions? string[] - Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- description string - The description of the AI agent
- 'type "ai_agent_text_gen" - The type of AI agent used for generating text
- customInstructions? string? - Custom instructions for the AI agent
box: AiStudioAgentTextGenResponse
The AI agent to be used to generate text
Fields
- basicGen? AiStudioAgentBasicGenToolResponse -
- suggestedQuestions? string[] - Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed
- accessState string - The state of the AI Agent capability. Possible values are:
enabledanddisabled
- description string - The description of the AI agent
- 'type "ai_agent_text_gen" - The type of AI agent used for generating text
- customInstructions? string? - Custom instructions for the AI agent
box: AiTaxonomyFileReference
A taxonomy .csv file to be used for the structured extraction. For your request to work, fields must also be provided
Fields
- taxonomyKey? string - The identifier for a taxonomy, which corresponds to the
taxonomy_keyof the taxonomy source
- id? string - The ID of the taxonomy source. Required if the type is
fileand unsupported if the type istaxonomy
- 'type? "file" - The type of the taxonomy source
box: AiTaxonomyReference
A taxonomy source to be used for the structured extraction. For your request to work, fields must also be provided
Fields
- namespace? string - The namespace of the taxonomy source
- taxonomyKey? string - The identifier for a taxonomy, which corresponds to the
taxonomy_keyof the taxonomy source
- 'type? "taxonomy" - The type of the taxonomy source
box: AiTextGen
AI text gen request object
Fields
- dialogueHistory? AiDialogueHistory[] - The history of prompts and answers previously passed to the LLM. This parameter provides the additional context to the LLM when generating the response
- prompt string - The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters
- items AiTextGenItems[] - The items to be processed by the LLM, often files. The array can include exactly one element. Note: Box AI handles documents with text representations up to 2MB in size. If the file size exceeds 2MB, the first 2MB of text representation will be processed
- aiAgent? AiTextGenAgent -
box: AiTextGenItems
The item to be processed by the LLM
Fields
- id string - The ID of the item
- 'type "file" - The type of the item
- content? string - The content to use as context for generating new text or editing existing text
box: AMetadataInstanceUpdateOperation
A JSON-Patch operation for a change to make to the metadata instance
Fields
- op? "add"|"replace"|"remove"|"test"|"move"|"copy" - The type of change to perform on the template. Some of these are hazardous as they will change existing templates
- path? string - The location in the metadata JSON object
to apply the changes to, in the format of a
JSON-Pointer.
The path must always be prefixed with a
/to represent the root of the template. The characters~and/are reserved characters and must be escaped in the key
- 'from? string - The location in the metadata JSON object to move or copy a value
from. Required for
moveorcopyoperations and must be in the format of a JSON-Pointer
- value? MetadataInstanceValue - The value to be set or tested.
Required for
add,replace, andtestoperations. Foradd, if the value exists already the previous value will be overwritten by the new value. Forreplace, the value must exist before replacing. Fortest, the existing value at thepathlocation must match the specified value
box: AMetadataTemplateUpdateOperation
A JSON-Patch operation for a change to make to the metadata instance
Fields
- enumOptionKeys? string[] - For operations that affect multiple
enumoptions this defines the keys of the options that are affected
- multiSelectOptionKeys? string[] - For operations that affect multiple multi select options this defines the keys of the options that are affected
- op "editTemplate"|"addField"|"reorderFields"|"addEnumOption"|"reorderEnumOptions"|"reorderMultiSelectOptions"|"addMultiSelectOption"|"editField"|"removeField"|"editEnumOption"|"removeEnumOption"|"editMultiSelectOption"|"removeMultiSelectOption" - The type of change to perform on the template. Some of these are hazardous as they will change existing templates
- data? record {} - The data for the operation. This will vary depending on the operation being performed
- fieldKey? string - For operations that affect a single field this defines the key of the field that is affected
- fieldKeys? string[] - For operations that affect multiple fields this defines the keys of the fields that are affected
- enumOptionKey? string - For operations that affect a single
enumoption this defines the key of the option that is affected
- multiSelectOptionKey? string - For operations that affect a single multi select option this defines the key of the option that is affected
box: AppItem
An app item represents an content object owned by an application. It can group files and folders together from different paths. That set can be shared via a collaboration
Fields
- applicationType string - The type of the app that owns this app item
- id string - The unique identifier for this app item
- 'type "app_item" - The value will always be
app_item
box: AppItemAssociation
An app item association represents an association between a file or folder and an app item. Associations between a folder and an app item cascade down to all descendants of the folder
Fields
- item AppItemAssociatedItem - The file, folder or web link which is associated with the app item
- appItem AppItem -
- id string - The unique identifier for this app item association
- 'type "app_item_association" - The value will always be
app_item_association
box: AppItemAssociations
A list of app item associations
Fields
- Fields Included from *AppItemAssociationsPart1
- Fields Included from *AppItemAssociationsPart12
- entries AppItemAssociation[]
- anydata...
box: AppItemAssociationsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: AppItemAssociationsPart12
Fields
- entries? AppItemAssociation[] -
box: AppItemEventSource
The AppItem that triggered an event in the event stream
Fields
- appItemType string - The type of the
AppItem
- id string - The id of the
AppItem
- 'type "app_item" - The type of the source that this event represents. Can only be
app_item
- user? UserMini -
- group? GroupMini -
box: ApplyMetadataCascadePolicyRequest
Fields
- conflictResolution "none"|"overwrite" - Describes the desired behavior when dealing with the conflict
where a metadata template already has an instance applied
to a child.
nonewill preserve the existing value on the fileoverwritewill force-apply the templates values over any existing values
box: ApplyWatermarkToFileRequest
Fields
- watermark FileWatermark - The watermark to imprint on the file
box: ApplyWatermarkToFolderRequest
Fields
- watermark FolderWatermark - The watermark to imprint on the folder
box: AssignLegalHoldPolicyRequest
Fields
- policyId string - The ID of the policy to assign
- assignTo LegalHoldPolicyAssignmentsAssignTo -
box: AssignRetentionPolicyRequest
Fields
- policyId string - The ID of the retention policy to assign
- assignTo RetentionPolicyAssignmentsAssignTo -
- filterFields? RetentionPolicyAssignmentsFilterFields[] - If the
assign_totype ismetadata_template, then optionally add thefilter_fieldsparameter which will require an array of objects with a field entry and a value entry. Currently only one object offieldandvalueis supported
- startDateField? string - The date the retention policy assignment begins.
If the
assigned_totype ismetadata_template, this field can be a date field's metadata attribute key id
box: AssignStoragePolicyRequest
Fields
- storagePolicy StoragePolicyAssignmentsStoragePolicy -
- assignedTo StoragePolicyAssignmentsAssignedTo -
box: AssignTaskRequest
Fields
- task TaskAssignmentsTask - The task to assign to a user
- assignTo TaskAssignmentsAssignTo -
box: AuthorizeUserQueries
Represents the Queries record for the operation: authorizeUser
Fields
- scope? string - A space-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
- responseType "code" - The type of response we'd like to receive
- redirectUri? string - The URI to which Box redirects the browser after the user has granted
or denied the application permission. This URI match one of the redirect
URIs in the configuration of your application. It must be a
valid HTTPS URI and it needs to be able to handle the redirection to
complete the next step in the OAuth 2.0 flow.
Although this parameter is optional, it must be a part of the
authorization URL if you configured multiple redirect URIs
for the application in the developer console. A missing parameter causes
a
redirect_uri_missingerror after the user grants application access
- state? string - 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
- 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
box: ChangeShieldBarrierStatusRequest
Fields
- id string - The ID of the shield information barrier
- status "pending"|"disabled" - The desired status for the shield information barrier
box: Classification
An instance of the classification metadata template, containing the classification applied to the file or folder.
To get more details about the classification applied to an item, request the classification metadata template
Fields
- dollarScope? string - The scope of the enterprise that this classification has been
applied for.
This will be in the format
enterprise_{enterprise_id}
- dollarTemplate? "securityClassification-6VMVochwUWo" - The value will always be
securityClassification-6VMVochwUWo
- dollarParent? string - The identifier of the item that this metadata instance
has been attached to. This combines the
typeand theidof the parent in the form{type}_{id}
- dollarVersion? int - The version of the metadata instance. This version starts at 0 and increases every time a classification is updated
- boxSecurityClassificationKey? string - The name of the classification applied to the item
- dollarTypeVersion? decimal - The version of the metadata template. This version starts at 0 and increases every time the template is updated. This is mostly for internal use
- dollarCanEdit? boolean - Whether an end user can change the classification
- dollarType? string - The unique ID of this classification instance. This will be include the name of the classification template and a unique ID
box: ClassificationTemplate
A metadata template that holds the security classifications defined by an enterprise
Fields
- copyInstanceOnItemCopy? boolean - Determines if classifications are copied along when the file or folder is copied
- hidden? boolean - Determines if the template is always available in web and mobile interfaces
- displayName "Classification" - The name of this template as shown in web and mobile interfaces
- scope string - The scope of the classification template. This is in the format
enterprise_{id}where theidis the enterprise ID
- id string - The ID of the classification template
- 'type "metadata_template" - The value will always be
metadata_template
- 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
- templateKey "securityClassification-6VMVochwUWo" - The value will always be
securityClassification-6VMVochwUWo
box: ClassificationTemplateFields
The metadata template field that represents the available classifications
Fields
- hidden? boolean - Classifications are always visible to web and mobile users
- displayName "Classification" - The value will always be
Classification
- options ClassificationTemplateOptions[] - A list of classifications available in this enterprise
- id string - The unique ID of the field
- 'type "enum" - The array item type
- 'key "Box__Security__Classification__Key" - Defines classifications available in the enterprise
box: ClassificationTemplateOptions
A single classification available in this enterprise
Fields
- id string - The unique ID of this classification
- staticConfig? ClassificationTemplateStaticConfig - Additional information about the classification
- 'key string - The display name and key for this classification
box: 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
box: 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? int - An internal Box identifier used to assign a color to
a classification label.
Mapping between a
colorIDand 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
box: 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
- item? CollaborationItem? -
- acceptanceRequirementsStatus? CollaborationAcceptanceRequirementsStatus -
- role? "editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner"|"owner" - The level of access granted
- isAccessOnly? boolean - If set to
true, collaborators have access to shared items, but such items won't be visible in the All Files list. Additionally, collaborators won't see the path to the root folder for the shared item
- appItem? AppItem? -
- createdAt? string - When the collaboration object was created
- 'type "collaboration" - The value will always be
collaboration
- createdBy? UserCollaborations -
- inviteEmail? string? - The email address used to invite an unregistered collaborator, if they are not a registered user
- accessibleBy? CollaborationAccessGrantee -
- expiresAt? string? - When the collaboration will expire, or
nullif no expiration date is set
- id string - The unique identifier for this collaboration
- modifiedAt? string - When the collaboration object was last modified
- acknowledgedAt? string - When the
statusof the collaboration object changed toacceptedorrejected
- status? "accepted"|"pending"|"rejected" - The status of the collaboration invitation. If the status
is
pending,namereturns an empty string
box: CollaborationAcceptanceRequirementsStatus
Fields
- twoFactorAuthenticationRequirement? CollaborationAcceptanceRequirementsStatusTwoFactorAuthenticationRequirement -
- strongPasswordRequirement? CollaborationAcceptanceRequirementsStatusStrongPasswordRequirement -
- termsOfServiceRequirement? CollaborationAcceptanceRequirementsStatusTermsOfServiceRequirement -
box: CollaborationAcceptanceRequirementsStatusStrongPasswordRequirement
Fields
- userHasStrongPassword? boolean? - Whether or not the user has a strong and not exposed password set
for their account. The field is
nullwhen a strong password is not required
- enterpriseHasStrongPasswordRequiredForExternalUsers? boolean - Whether or not the enterprise that owns the content requires a strong password to collaborate on the content, or enforces an exposed password detection for the external collaborators
box: CollaborationAcceptanceRequirementsStatusTermsOfServiceRequirement
Fields
- isAccepted? boolean? - Whether or not the terms of service have been accepted. The
field is
nullwhen there is no terms of service required
- termsOfService? TermsOfServiceBase -
box: CollaborationAcceptanceRequirementsStatusTwoFactorAuthenticationRequirement
Fields
- userHasTwoFactorAuthenticationEnabled? boolean? - Whether or not the user has two-factor authentication
enabled. The field is
nullwhen two-factor authentication is not required
- enterpriseHasTwoFactorAuthEnabled? boolean - Whether or not the enterprise that owns the content requires two-factor authentication to be enabled in order to collaborate on the content
box: CollaborationAllowlistEntries
A list of allowed domains for collaboration
Fields
- Fields Included from *CollaborationAllowlistEntriesPart1
- Fields Included from *CollaborationAllowlistEntriesPart12
- entries CollaborationAllowlistEntry[]
- anydata...
box: CollaborationAllowlistEntriesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: CollaborationAllowlistEntriesPart12
Fields
- entries? CollaborationAllowlistEntry[] - A list of allowed collaboration domains.
box: CollaborationAllowlistEntry
An entry that describes an approved domain for which users can collaborate with files and folders in your enterprise or vice versa
Fields
- domain? string - The whitelisted domain
- createdAt? string - The time the entry was created at
- id? string - The unique identifier for this entry
- 'type? "collaboration_whitelist_entry" - The value will always be
collaboration_whitelist_entry
- direction? "inbound"|"outbound"|"both" - The direction of the collaborations to allow
box: CollaborationAllowlistExemptTarget
The user that is exempt from any of the restrictions imposed by the list of allowed collaboration domains for this enterprise
Fields
- createdAt? string - The time the entry was created
- id? string - The unique identifier for this exemption
- 'type? "collaboration_whitelist_exempt_target" - The value will always be
collaboration_whitelist_exempt_target
- modifiedAt? string - The time the entry was modified
- user? UserMini -
box: CollaborationAllowlistExemptTargets
A list of users exempt from any of the restrictions imposed by the list of allowed collaboration domains for this enterprise
Fields
- Fields Included from *CollaborationAllowlistExemptTargetsPart1
- Fields Included from *CollaborationAllowlistExemptTargetsPart12
- entries CollaborationAllowlistExemptTarget[]
- anydata...
box: CollaborationAllowlistExemptTargetsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: CollaborationAllowlistExemptTargetsPart12
Fields
- entries? CollaborationAllowlistExemptTarget[] - A list of users exempt from any of the restrictions imposed by the list of allowed collaboration domains for this enterprise.
box: Collaborations
A list of collaborations
Fields
- Fields Included from *CollaborationsPart1
- Fields Included from *CollaborationsPart12
- entries Collaboration[]
- anydata...
box: CollaborationsAccessibleBy
The user or group to give access to the item
Fields
- id? string - The ID of the user or group.
Alternatively, use
loginto specify a user by email address
- 'type "user"|"group" - The type of collaborator to invite
- login? string - The email address of the user to grant access to the item.
Alternatively, use
idto specify a user by user ID
box: CollaborationsItem
The item to attach the comment to
Fields
- id? string - The ID of the item that will be granted access to
- 'type? "file"|"folder" - The type of the item that this collaboration will be granted access to
box: CollaborationsOffsetPaginated
A list of collaborations
Fields
- Fields Included from *CollaborationsOffsetPaginatedPart1
- Fields Included from *CollaborationsOffsetPaginatedPart12
- entries Collaboration[]
- anydata...
box: CollaborationsOffsetPaginatedPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: CollaborationsOffsetPaginatedPart12
Fields
- entries? Collaboration[] - A list of collaborations.
box: CollaborationsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: CollaborationsPart12
Fields
- entries? Collaboration[] - A list of collaborations.
box: CollaborationWhitelistExemptTargetsUser
The user to exempt
Fields
- id string - The ID of the user to exempt
box: CollaboratorVariable
A collaborator object. Allows to specify a list of user ID's that are affected by the workflow result
Fields
- variableValue CollaboratorVariableVariableValue[] - A list of user IDs
- variableType "user_list" - Variable type for the Collaborator object
- 'type "variable" - Collaborator object type
box: CollaboratorVariableVariableValue
User variable used in workflow outcomes
Fields
- id string - User's ID
- 'type "user" - The object type
box: 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
- name? "Favorites" - The name of the collection
- id? string - The unique identifier for this collection
- 'type? "collection" - The value will always be
collection
- collectionType? "favorites" - The type of the collection. This is used to determine the proper visual treatment for collections
box: Collections
A list of collections
Fields
- Fields Included from *CollectionsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *CollectionsPart12
- entries Collection[]
- anydata...
box: CollectionsOrder
The order in which a pagination is ordered
Fields
- 'by? string - The field to order by
- direction? "ASC"|"DESC" - The direction to order by, either ascending or descending
box: CollectionsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: CollectionsPart12
Fields
- entries? Collection[] - A list of collections.
box: Comment
Standard representation of a comment
Fields
- Fields Included from *CommentBase
- id string
- type "comment"
- anydata...
- createdAt? string - The time this comment was created.
- isReplyComment? boolean - Whether or not this comment is a reply to another comment.
- message? string - The text of the comment, as provided by the user.
- modifiedAt? string - The time this comment was last modified.
- createdBy? UserMini -
box: CommentBase
Base representation of a comment
Fields
- id? string - The unique identifier for this comment
- 'type? "comment" - The value will always be
comment
box: CommentFull
Comments are messages created on files. Comments can be made independently or created as responses to other comments
Fields
- Fields Included from *Comment
- taggedMessage? string - The string representing the comment text with
@mentions included. @mention format is @[id:username]
where
idis user's Box ID andusernameis their display name.
box: Comments
A list of comments
Fields
- Fields Included from *CommentsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *CommentsPart12
- entries CommentFull[]
- anydata...
box: CommentsItem
The item to attach the comment to
Fields
- id string - The ID of the item
- 'type "file"|"comment" - The type of the item that this comment will be placed on
box: CommentsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: CommentsPart12
Fields
- entries? CommentFull[] - A list of comments.
box: CommitUploadSessionHeaders
Represents the Headers record for the operation: commitUploadSession
Fields
- ifNoneMatch? string - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: CommitUploadSessionRequest
Fields
- parts UploadPart[] - The list details for the uploaded parts
box: CompletionRuleVariable
A completion rule object. Determines if an action should be completed by all or any assignees
Fields
- variableValue "all_assignees"|"any_assignees" - Variable values for a completion rule
- variableType "task_completion_rule" - Variable type for the Completion Rule object
- 'type "variable" - Completion Rule object type
box: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
box: CopyFileParent
The destination folder to copy the file to
Fields
- id string - The ID of folder to copy the file to
box: CopyFileQueries
Represents the Queries record for the operation: copyFile
Fields
- fields? string[] - 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
box: CopyFileRequest
Fields
- parent CopyFileParent - The destination folder to copy the file to
- 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 MISSING[`]automatically sanitized by removing the non-allowed characters
- version? string - An optional ID of the specific file version to copy
box: CopyFolderParent
The destination folder to copy the folder to
Fields
- id string - The ID of parent folder
box: CopyFolderQueries
Represents the Queries record for the operation: copyFolder
Fields
- fields? string[] - 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
box: CopyFolderRequest
Fields
- parent CopyFolderParent - The destination folder to copy the folder to
- 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 MISSING[`]prohibited. Additionally, the names.and..are not allowed either
box: CreateAiAgent
The schema for AI agent create request
Fields
- extract? AiStudioAgentExtract - The AI agent to be used for metadata extraction
- accessState string - The state of the AI Agent. Possible values are:
enabled,disabled, andenabled_for_selected_users
- allowedEntities? AiAgentAllowedEntity[] - List of allowed users or groups
- name string - The name of the AI Agent
- ask? AiStudioAgentAsk - The AI agent to be used to handle queries
- 'type "ai_agent" - The type of agent used to handle queries
- textGen? AiStudioAgentTextGen -
- iconReference? string - The icon reference of the AI Agent. It should have format of the URL
https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>where possible values offile_nameare:logo_boxAi.png,logo_stamp.png,logo_legal.png,logo_finance.png,logo_config.png,logo_handshake.png,logo_analytics.png,logo_classification.png
box: CreateCollabDomainExemptUserRequest
Fields
- user CollaborationWhitelistExemptTargetsUser - The user to exempt
box: CreateCollaborationQueries
Represents the Queries record for the operation: createCollaboration
Fields
- fields? string[] - 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 - Determines if users should receive email notification for the action performed
box: CreateCollaborationRequest
Fields
- item CollaborationsItem - The item to attach the comment to
- accessibleBy CollaborationsAccessibleBy -
- role "editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner" - The level of access granted
- expiresAt? 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
- isAccessOnly? boolean - If set to
true, collaborators have access to shared items, but such items won't be visible in the All Files list. Additionally, collaborators won't see the path to the root folder for the shared item
- canViewPath? 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_pathenabled to 1,000 per user. Only an owner or co-owners can invite collaborators with acan_view_pathoftrue. Only an owner can updatecan_view_pathon existing collaborations.can_view_pathcan only be used for folder collaborations. When you delete a folder withcan_view_path=true, collaborators may still see the parent path. For instructions on how to remove this, see Even though a folder invited via can_view_path is deleted, the path remains displayed
box: CreateCommentQueries
Represents the Queries record for the operation: createComment
Fields
- fields? string[] - 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
box: CreateCommentRequest
Fields
- item CommentsItem - The item to attach the comment to
- taggedMessage? 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_idis the target user's ID, where thenamecan be any custom phrase. In the Box UI this name will link to the user's profile. If you are not mentioning another user, usemessageinstead
- message string - The text of the comment.
To mention a user, use the
tagged_messageparameter instead
box: CreateEmailAliasRequest
Fields
- email string - The email address to add to the account as an alias. Note: The domain of the email alias needs to be registered to your enterprise. See the domain verification guide for steps to add a new domain
box: CreateFolderLockRequest
Fields
- folder FolderLocksFolder - The folder to apply the lock to
- lockedOperations? FolderLocksLockedOperations -
box: CreateFolderQueries
Represents the Queries record for the operation: createFolder
Fields
- fields? string[] - 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
box: CreateFolderRequest
Fields
- parent FoldersParent - The parent folder to create the new folder within
- name string - The name for the new folder.
The following restrictions to folder names apply: names containing
non-printable ASCII characters, forward and backward slashes
(
/,\), names with trailing spaces, and names.and..are MISSING[`]not allowed. Folder names must be unique within their parent folder. The name check is case-insensitive, so a folder namedNew Foldercannot be created in a parent folder that already contains a folder namednew folder
- syncState? "synced"|"not_synced"|"partially_synced" - 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
- folderUploadEmail? record { access "open"|"collaborators" } -
box: CreateGroupQueries
Represents the Queries record for the operation: createGroup
Fields
- fields? string[] - 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
box: CreateGroupRequest
Fields
- 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
- invitabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - Specifies who can invite the group to collaborate
on folders.
When set to
admins_onlythe enterprise admin, co-admins, and the group's admin can invite the group. When set toadmins_and_membersall the admins listed above and group members can invite the group. When set toall_managed_usersall managed users in the enterprise can invite the group
- name string - The name of the new group to be created. This name must be unique within the enterprise
- description? string - A human readable description of the group
- externalSyncIdentifier? 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
- memberViewabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - 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
box: CreateJobsToTerminateUserGroupSessionRequest
Fields
- groupIds string[] - A list of group IDs
box: CreateJobsToTerminateUsersSessionRequest
Fields
- userIds string[] - A list of user IDs
- userLogins string[] - A list of user logins
box: CreateLegalHoldPolicyRequest
Fields
- isOngoing? 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
- policyName string - The name of the policy
- description? string - A description for the policy
- filterEndedAt? string - The filter end date.
When this policy is applied using a
custodianlegal 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_ongoingis set tofalse
- filterStartedAt? string - The filter start date.
When this policy is applied using a
custodianlegal 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_ongoingis set tofalse
box: CreateMetadataCascadePolicyRequest
Fields
- scope "global"|"enterprise" - The scope of the targeted metadata template. This template will need to already have an instance applied to the targeted folder
- folderId string - The ID of the folder to apply the policy to. This folder will need to already have an instance of the targeted metadata template applied to it
- templateKey string - The key of the targeted metadata template. This template will
need to already have an instance applied to the targeted folder.
In many cases the template key is automatically derived
of its display name, for example
Contract Templatewould becomecontractTemplate. In some cases the creator of the template will have provided its own template key. Please list the templates for an enterprise, or get all instances on a file or folder to inspect a template's key.
box: CreateMetadataTaxonomyNodeRequest
Fields
- level int - The level of the taxonomy node
- displayName string - The display name of the taxonomy node
- parentId? string - The identifier of the parent taxonomy node. Omit this field for root-level nodes
box: CreateMetadataTaxonomyRequest
Fields
- displayName string - The display name of the taxonomy
- namespace string - The namespace of the metadata taxonomy to create
- 'key? string - The taxonomy key. If it is not provided in the request body, it will be
generated from the
displayName. ThedisplayNamewould be converted to lower case, and all spaces and non-alphanumeric characters replaced with underscores
box: CreateMetadataTemplateRequest
Fields
- copyInstanceOnItemCopy boolean(default false) - Whether or not to copy any metadata attached to a file or folder when it is copied. By default, metadata is not copied along with a file or folder when it is copied
- hidden boolean(default false) - Defines if this template is visible in the Box web app UI, or if it is purely intended for usage through the API
- displayName string - The display name of the template
- scope string - The scope of the metadata template to create. Applications can
only create templates for use within the authenticated user's
enterprise.
This value needs to be set to
enterprise, asglobalscopes can not be created by applications
- fields? MetadataFieldWrite[] - An ordered list of template fields which are part of the template. Each field can be a regular text field, date field, number field, as well as a single or multi-select list
- templateKey? string - A unique identifier for the template. This identifier needs to be
unique across the enterprise for which the metadata template is
being created.
When not provided, the API will create a unique
templateKeybased on the value of thedisplayName
box: CreateRetentionPolicyRequest
Fields
- policyType "finite"|"indefinite" - 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
- dispositionAction "permanently_delete"|"remove_retention" - The disposition action of the retention policy.
permanently_deletedeletes the content retained by the policy permanently.remove_retentionlifts retention policy from the content, allowing it to be deleted by users once the retention policy has expired
- maxExtensionLength? RetentionPolicyMaxExtensionLengthRequest -
- policyName string - The name for the retention policy
- description? string - The additional text description of the retention policy
- customNotificationRecipients? UserMini[] - A list of users notified when the retention policy duration is about to end
- canOwnerExtendRetention? boolean - Whether the owner of a file will be allowed to extend the retention
- retentionType? "modifiable"|"non_modifiable" - Specifies the retention type:
-
modifiable: You can modify the retention policy. For example, you can add or remove folders, shorten or lengthen the policy duration, or delete the assignment. Use this type if your retention policy is not related to any regulatory purposes. -
non_modifiable: You can modify the retention policy only in a limited way: add a folder, lengthen the duration, retire the policy, change the disposition action or notification settings. You cannot perform other actions, such as deleting the assignment or shortening the policy duration. Use this type to ensure compliance with regulatory retention policies
-
- areOwnersNotified? boolean - Whether owner and co-owners of a file are notified when the policy nears expiration
box: CreateShieldBarrierRequest
Fields
- enterprise EnterpriseBase - The
typeandidof enterprise this barrier is under
box: CreateShieldBarrierRestrictionRequest
Fields
- restrictedSegment ShieldBarrierRestrictedSegment -
- shieldInformationBarrier? ShieldInformationBarrierBase -
- shieldInformationBarrierSegment ShieldBarrierRestrictionSegment -
- 'type "shield_information_barrier_segment_restriction" - The type of the shield barrier segment restriction for this member
box: CreateShieldBarrierSegmentMemberRequest
Fields
- shieldInformationBarrier? ShieldInformationBarrierBase -
- shieldInformationBarrierSegment ShieldBarrierMemberSegment -
- 'type? "shield_information_barrier_segment_member" - A type of the shield barrier segment member
- user UserBase - User to which restriction will be applied
box: CreateShieldBarrierSegmentRequest
Fields
- shieldInformationBarrier ShieldInformationBarrierBase -
- name string - Name of the shield information barrier segment
- description? string - Description of the shield information barrier segment
box: CreateSkillCardsOnFileRequest
Fields
- cards SkillCard[] - A list of Box Skill cards to apply to this file
box: CreateTaskRequest
Fields
- item TasksItem - The file to attach the task to
- action "review"|"complete" (default "review") - The action the task assignee will be prompted to do. Must be
reviewdefines an approval task that can be approved or, rejectedcompletedefines a general task which can be completed
- dueAt? string - Defines when the task is due. Defaults to
nullif not provided
- message string(default "") - An optional message to include with the task
- completionRule "all_assignees"|"any_assignee" (default "all_assignees") - 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 task in order for it to be considered completed.any_assigneeaccepts any one assignee to review or approve the task in order for it to be considered completed
box: CreateTermsOfServiceRequest
Fields
- tosType? "external"|"managed" - 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
statusis set todisabled
- status "enabled"|"disabled" - Whether this terms of service is active
box: CreateTermsOfServiceStatusForNewUserRequest
Fields
- isAccepted boolean - Whether the user has accepted the terms
- tos TermsOfServiceUserStatusesTos - The terms of service to set the status for
- user TermsOfServiceUserStatusesUser - The user to set the status for
box: CreateUploadSessionForExistingFileRequest
Fields
- fileName? string - The optional new name of new file
- fileSize int - The total number of bytes of the file to be uploaded
box: CreateUploadSessionRequest
Fields
- fileName string - The name of new file
- folderId string - The ID of the folder to upload the new file to
- fileSize int - The total number of bytes of the file to be uploaded
box: CreateUserInviteQueries
Represents the Queries record for the operation: createUserInvite
Fields
- fields? string[] - 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
box: CreateUserInviteRequest
Fields
- enterprise InvitesEnterprise - The enterprise to invite the user to
- actionableBy InvitesActionableBy -
box: CreateUserQueries
Represents the Queries record for the operation: createUser
Fields
- fields? string[] - 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
box: CreateUserRequest
Fields
- canSeeManagedUsers? boolean - Whether the user can see other enterprise users in their contact list
- role? "coadmin"|"user" - The user’s enterprise role
- address? string - The user’s address
- timezone? string - The user's timezone
- isExemptFromLoginVerification? boolean - Whether the user must use two-factor authentication
- isExternalCollabRestricted? boolean - Whether the user is allowed to collaborate with users outside their enterprise
- login? string - The email address the user uses to log in
Required, unless
is_platform_access_onlyis set totrue
- externalAppUserId? 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
- isExemptFromDeviceLimits? boolean - Whether to exempt the user from enterprise device limits
- phone? string - The user’s phone number
- spaceAmount? int - The user’s total available space in bytes. Set this to
-1to indicate unlimited storage
- name string - The name of the user
- isSyncEnabled? boolean - Whether the user can use Box Sync
- isPlatformAccessOnly? boolean - Specifies that the user is an app user
- jobTitle? string - The user’s job title
- trackingCodes? TrackingCode[] - 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
- status? "active"|"inactive"|"cannot_delete_edit"|"cannot_delete_edit_upload" - The user's account status
box: CreateWebhookRequest
Fields
- address string - The URL that is notified by this webhook
- triggers ("FILE.UPLOADED"|"FILE.PREVIEWED"|"FILE.DOWNLOADED"|"FILE.TRASHED"|"FILE.DELETED"|"FILE.RESTORED"|"FILE.COPIED"|"FILE.MOVED"|"FILE.LOCKED"|"FILE.UNLOCKED"|"FILE.RENAMED"|"COMMENT.CREATED"|"COMMENT.UPDATED"|"COMMENT.DELETED"|"TASK_ASSIGNMENT.CREATED"|"TASK_ASSIGNMENT.UPDATED"|"METADATA_INSTANCE.CREATED"|"METADATA_INSTANCE.UPDATED"|"METADATA_INSTANCE.DELETED"|"FOLDER.CREATED"|"FOLDER.RENAMED"|"FOLDER.DOWNLOADED"|"FOLDER.RESTORED"|"FOLDER.DELETED"|"FOLDER.COPIED"|"FOLDER.MOVED"|"FOLDER.TRASHED"|"WEBHOOK.DELETED"|"COLLABORATION.CREATED"|"COLLABORATION.ACCEPTED"|"COLLABORATION.REJECTED"|"COLLABORATION.REMOVED"|"COLLABORATION.UPDATED"|"SHARED_LINK.DELETED"|"SHARED_LINK.CREATED"|"SHARED_LINK.UPDATED"|"SIGN_REQUEST.COMPLETED"|"SIGN_REQUEST.DECLINED"|"SIGN_REQUEST.EXPIRED"|"SIGN_REQUEST.SIGNER_EMAIL_BOUNCED"|"SIGN_REQUEST.SIGN_SIGNER_SIGNED"|"SIGN_REQUEST.SIGN_DOCUMENT_CREATED"|"SIGN_REQUEST.SIGN_ERROR_FINALIZING")[] - An array of event names that this webhook is to be triggered for
- target WebhooksTarget - The item that will trigger the webhook
box: CreateWebLinkRequest
Fields
- 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
- url string - The URL that this web link links to. Must start with
"http://"or"https://"
box: DeleteFileHeaders
Represents the Headers record for the operation: deleteFile
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: DeleteFolderHeaders
Represents the Headers record for the operation: deleteFolder
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: DeleteFolderQueries
Represents the Queries record for the operation: deleteFolder
Fields
- recursive? boolean - Delete a folder that is not empty by recursively deleting the folder and all of its content
box: DeleteUserQueries
Represents the Queries record for the operation: deleteUser
Fields
- force? boolean - Specifies whether to delete the user even if they still own files
- notify? boolean - Whether the user will receive email notification of the deletion
box: DevicePinner
Device pins allow enterprises to control what devices can use native Box applications
Fields
- ownedBy? UserMini -
- id? string - The unique identifier for this device pin
- 'type? "device_pinner" - The value will always be
device_pinner
- productName? string - The type of device being pinned
box: DevicePinners
A list of device pins
Fields
- nextMarker? int - The marker for the start of the next page of results
- entries? DevicePinner[] - A list of device pins
- 'limit int(default 100) - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed
- 'order? DevicePinnersOrder[] - The order by which items are returned
box: DevicePinnersOrder
The order in which a pagination is ordered
Fields
- 'by? "id" - The field that is ordered by
- direction? "asc"|"desc" - The direction to order by, either ascending or descending
box: DownloadFileHeaders
Represents the Headers record for the operation: downloadFile
Fields
- boxapi? string - 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
- range? string - The byte range of the content to download.
The format
bytes={start_byte}-{end_byte}can be used to specify what section of the file to download
box: DownloadFileQueries
Represents the Queries record for the operation: downloadFile
Fields
- accessToken? string - 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
- version? string - The file version to download
box: EmailAlias
An email alias for a user
Fields
- isConfirmed? boolean - Whether the email address has been confirmed
- id? string - The unique identifier for this object
- 'type? "email_alias" - The value will always be
email_alias
- email? string - The email address
box: EmailAliases
A list of email aliases
Fields
- entries? EmailAlias[] - A list of email aliases
- totalCount? int - The number of email aliases
box: Enterprise
A representation of a Box enterprise
Fields
- name? string - The name of the enterprise
- id? string - The unique identifier for this enterprise
- 'type? "enterprise" - The value will always be
enterprise
box: EnterpriseBase
A representation of a enterprise, used when nested within another resource
Fields
- id? string - The unique identifier for this enterprise
- 'type? "enterprise" - The value will always be
enterprise
box: Event
The description of an event that happened within Box
Fields
- recordedAt? string - When the event object was recorded in database
- eventId? string - The ID of the event object. You can use this to detect duplicate events
- eventType? "ACCESS_GRANTED"|"ACCESS_REVOKED"|"ADD_DEVICE_ASSOCIATION"|"ADD_LOGIN_ACTIVITY_DEVICE"|"ADMIN_LOGIN"|"ADVANCED_FOLDER_SETTINGS_UPDATE"|"AI_SECURITY_DETECTION"|"ANNOTATIONV2_CREATE"|"ANNOTATIONV2_DELETE"|"ANNOTATIONV2_EDIT"|"APPLICATION_CREATED"|"APPLICATION_PUBLIC_KEY_ADDED"|"APPLICATION_PUBLIC_KEY_DELETED"|"BOX_AI_USER_FAILED_REQUEST"|"BOX_AI_USER_REQUEST"|"CHANGE_ADMIN_ROLE"|"CHANGE_FOLDER_PERMISSION"|"COLLABORATION_ACCEPT"|"COLLABORATION_EXPIRATION"|"COLLABORATION_INVITE"|"COLLABORATION_REMOVE"|"COLLABORATION_ROLE_CHANGE"|"COLLAB_ADD_COLLABORATOR"|"COLLAB_INVITE_COLLABORATOR"|"COLLAB_REMOVE_COLLABORATOR"|"COLLAB_ROLE_CHANGE"|"COLLECTION_CREATE"|"COLLECTION_DELETE"|"COLLECTION_ITEM_CREATE"|"COLLECTION_ITEM_DELETE"|"COLLECTION_ITEM_UPDATE"|"COLLECTION_UPDATE"|"COMMENT_CREATE"|"COMMENT_DELETE"|"COMMENT_EDIT"|"CONTENT_ACCESS"|"CONTENT_RECOVERY_REPORT_CREATE"|"CONTENT_RECOVERY_REPORT_DELETE"|"CONTENT_RECOVERY_REPORT_INITIATE"|"CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY"|"CONTENT_WORKFLOW_AUTOMATION_ADD"|"CONTENT_WORKFLOW_AUTOMATION_DELETE"|"CONTENT_WORKFLOW_POLICY_ADD"|"CONTENT_WORKFLOW_SHARING_POLICY_VIOLATION"|"CONTENT_WORKFLOW_UPLOAD_POLICY_VIOLATION"|"COPY"|"DATA_RETENTION_CREATE_RETENTION"|"DATA_RETENTION_REMOVE_RETENTION"|"DELETE"|"DELETE_USER"|"DEVICE_TRUST_CHECK_FAILED"|"DISABLE_MULTI_FACTOR_AUTH"|"DOWNLOAD"|"EDIT"|"EDIT_USER"|"EDR_CROWDSTRIKE_ACCESS_ALLOWED_NO_CROWDSTRIKE_DEVICE"|"EDR_CROWDSTRIKE_ACCESS_REVOKED"|"EDR_CROWDSTRIKE_BOX_TOOLS_OUTDATED"|"EDR_CROWDSTRIKE_DEVICE_DETECTED"|"EDR_CROWDSTRIKE_DRIVE_OUTDATED"|"EDR_CROWDSTRIKE_NO_BOX_TOOLS"|"EMAIL_ALIAS_CONFIRM"|"EMAIL_ALIAS_PRIMARY"|"EMAIL_ALIAS_REMOVE"|"EMAIL_UPLOAD_DISABLED"|"EMAIL_UPLOAD_ENABLED"|"ENABLE_MULTI_FACTOR_AUTH"|"ENABLE_TWO_FACTOR_AUTH"|"ENTERPRISE_APP_AUTHORIZATION_UPDATE"|"EXTERNAL_COLLAB_SECURITY_SETTINGS"|"FAILED_LOGIN"|"FAVORITE"|"FILE_MARKED_MALICIOUS"|"FILE_REQUEST_CREATE"|"FILE_REQUEST_DELETE"|"FILE_REQUEST_UPDATE"|"FILE_VERSION_RESTORE"|"FILE_WATERMARKED_DOWNLOAD"|"GROUP_ADD_ITEM"|"GROUP_ADD_USER"|"GROUP_ADMIN_CREATED"|"GROUP_ADMIN_DELETED"|"GROUP_ADMIN_PERMISSIONS_UPDATED"|"GROUP_CREATION"|"GROUP_DELETION"|"GROUP_EDITED"|"GROUP_REMOVE_ITEM"|"GROUP_REMOVE_USER"|"ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER"|"ITEM_ASSOCIATION_CREATED"|"ITEM_ASSOCIATION_DELETED"|"ITEM_ASSOCIATION_UPDATED"|"ITEM_COPY"|"ITEM_CREATE"|"ITEM_DOWNLOAD"|"ITEM_EMAIL_SEND"|"ITEM_MAKE_CURRENT_VERSION"|"ITEM_MODIFY"|"ITEM_MOVE"|"ITEM_OPEN"|"ITEM_PREVIEW"|"ITEM_RENAME"|"ITEM_SHARED"|"ITEM_SHARED_CREATE"|"ITEM_SHARED_UNSHARE"|"ITEM_SHARED_UPDATE"|"ITEM_SYNC"|"ITEM_TRASH"|"ITEM_UNDELETE_VIA_TRASH"|"ITEM_UNSYNC"|"ITEM_UPLOAD"|"LEGAL_HOLD_ASSIGNMENT_CREATE"|"LEGAL_HOLD_ASSIGNMENT_DELETE"|"LEGAL_HOLD_POLICY_CREATE"|"LEGAL_HOLD_POLICY_DELETE"|"LEGAL_HOLD_POLICY_UPDATE"|"LOCK"|"LOCK_CREATE"|"LOCK_DESTROY"|"LOGIN"|"MASTER_INVITE_ACCEPT"|"MASTER_INVITE_REJECT"|"METADATA_CASCADE_POLICY_APPLY"|"METADATA_CASCADE_POLICY_CREATE"|"METADATA_INSTANCE_COPY"|"METADATA_INSTANCE_CREATE"|"METADATA_INSTANCE_DELETE"|"METADATA_INSTANCE_UPDATE"|"METADATA_TEMPLATE_CREATE"|"METADATA_TEMPLATE_DELETE"|"METADATA_TEMPLATE_UPDATE"|"MOVE"|"NEW_USER"|"OAUTH2_ACCESS_TOKEN_REVOKE"|"OAUTH2_REFRESH_TOKEN_REVOKE"|"PREVIEW"|"REMOVE_DEVICE_ASSOCIATION"|"REMOVE_LOGIN_ACTIVITY_DEVICE"|"RENAME"|"RETENTION_POLICY_ASSIGNMENT_ADD"|"SHARE"|"SHARED_LINK_REDIRECT_OUT_OF_SHARED_CONTEXT"|"SHARED_LINK_SEND"|"SHARE_EXPIRATION"|"SHIELD_ACCESS_POLICY_CREATED"|"SHIELD_ACCESS_POLICY_DELETED"|"SHIELD_ACCESS_POLICY_UPDATED"|"SHIELD_ALERT"|"SHIELD_DOWNLOAD_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_ACCESS_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_ACCESS_BLOCKED_MISSING_JUSTIFICATION"|"SHIELD_EXTERNAL_COLLAB_INVITE_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_INVITE_BLOCKED_MISSING_JUSTIFICATION"|"SHIELD_EXTERNAL_COLLAB_INVITE_JUSTIFIED"|"SHIELD_INFORMATION_BARRIER_COLLAB_BLOCKED"|"SHIELD_INFORMATION_BARRIER_DISABLED"|"SHIELD_INFORMATION_BARRIER_ENABLED"|"SHIELD_INFORMATION_BARRIER_GROUP_ADD_USER_BLOCKED"|"SHIELD_INFORMATION_BARRIER_ITEM_COPY_BLOCKED"|"SHIELD_INFORMATION_BARRIER_ITEM_MOVE_BLOCKED"|"SHIELD_INFORMATION_BARRIER_ITEM_OWNER_TRANSFER_BLOCKED"|"SHIELD_INFORMATION_BARRIER_PENDING"|"SHIELD_INFORMATION_BARRIER_SHARED_ITEM_ACCESS_BLOCKED"|"SHIELD_JUSTIFICATION_APPROVAL"|"SHIELD_PREVIEW_BLOCKED"|"SHIELD_SHARED_LINK_ACCESS_BLOCKED"|"SHIELD_SHARED_LINK_STATUS_RESTRICTED_ON_CREATE"|"SHIELD_SHARED_LINK_STATUS_RESTRICTED_ON_UPDATE"|"SIGN_DOCUMENT_ASSIGNED"|"SIGN_DOCUMENT_CANCELLED"|"SIGN_DOCUMENT_COMPLETED"|"SIGN_DOCUMENT_CONVERTED"|"SIGN_DOCUMENT_CREATED"|"SIGN_DOCUMENT_DECLINED"|"SIGN_DOCUMENT_EXPIRED"|"SIGN_DOCUMENT_SIGNED"|"SIGN_DOCUMENT_VIEWED_BY_SIGNED"|"SIGN_DOCUMENT_VIEWED_BY_SIGNER"|"SIGNER_DOWNLOADED"|"SIGNER_FORWARDED"|"STORAGE_EXPIRATION"|"TAG_ITEM_CREATE"|"TASK_ASSIGNMENT_CREATE"|"TASK_ASSIGNMENT_DELETE"|"TASK_ASSIGNMENT_UPDATE"|"TASK_CREATE"|"TASK_UPDATE"|"TERMS_OF_SERVICE_ACCEPT"|"TERMS_OF_SERVICE_REJECT"|"UNDELETE"|"UNFAVORITE"|"UNLOCK"|"UNSHARE"|"UPDATE_COLLABORATION_EXPIRATION"|"UPDATE_SHARE_EXPIRATION"|"UPLOAD"|"USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE"|"WATERMARK_LABEL_CREATE"|"WATERMARK_LABEL_DELETE"|"WORKFLOW_AUTOMATION_CREATE"|"WORKFLOW_AUTOMATION_DELETE"|"WORKFLOW_AUTOMATION_UPDATE" -
- additionalDetails? 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_detailsobject. This object is only available in the Enterprise Events
- createdAt? string - When the event object was created
- sessionId? string - The session of the user that performed the action. Not all events will populate this attribute
- 'source? EventSourceResource -
- 'type? string - The value will always be
event
- createdBy? UserMini -
box: Events
A list of event objects
Fields
- chunkSize? int - The number of events returned in this response
- entries? Event[] - A list of events
box: EventSource
The source file or folder that triggered an event in the event stream
Fields
- parent? FolderMini? -
- itemId string - The unique identifier that represents the item
- itemType "file"|"folder" - The type of the item that the event
represents. Can be
fileorfolder
- itemName string - The name of the item
- ownedBy? UserMini -
- classification? EventSourceClassification - The object containing classification information for the item that triggered the event. This field will not appear if the item does not have a classification set
box: EventSourceClassification
The object containing classification information for the item that triggered the event. This field will not appear if the item does not have a classification set
Fields
- name? string - The classification's name
box: File
A standard representation of a file, as returned from any file API endpoints by default
Fields
- Fields Included from *FileMini
- parent? FolderMini? -
- description? string - The optional description of this file. If the description exceeds 255 characters, the first 255 characters are set as a file description and the rest of it is ignored.
- createdAt? string - The date and time when the file was created on Box.
- contentCreatedAt? string? - The date and time at which this file was originally created, which might be before it was uploaded to Box.
- ownedBy? UserMini -
- itemStatus? "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted.
- createdBy? UserMini -
- trashedAt? string? - The time at which this file was put in the trash.
- size? int - The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow.
- purgedAt? string? - The time at which this file is expected to be purged from the trash.
- modifiedBy? UserMini -
- sharedLink? record { isPasswordEnabled boolean, vanityName string?, access "open"|"company"|"collaborators" , permissions record { canEdit boolean, canPreview boolean, canDownload boolean }, downloadUrl string?, effectiveAccess "open"|"company"|"collaborators" , effectivePermission "can_edit"|"can_download"|"can_preview"|"no_access" , vanityUrl string?, unsharedAt string?, previewCount int, url string, downloadCount int }? -
- contentModifiedAt? string? - The date and time at which this file was last updated, which might be before it was uploaded to Box.
- modifiedAt? string - The date and time when the file was last updated on Box.
- pathCollection? record { entries FolderMini[], totalCount int } -
box: FileBase
The bare basic representation of a file, the minimal
amount of fields returned when using the fields query
parameter
Fields
- etag? string? - The HTTP
etagof this file. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the file if (no) changes have happened
- 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/123thefile_idis123
- 'type "file" - The value will always be
file
box: FileContentAttributes
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.
The 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
- contentModifiedAt? string - Defines the time the file was last modified at. If not set, the upload time will be used
box: FileFull
A full representation of a file, as can be returned from any file API endpoints by default
Fields
- Fields Included from *File
- parent FolderMini|()
- description string
- createdAt string
- contentCreatedAt string|()
- ownedBy UserMini
- itemStatus "active"|"trashed"|"deleted"
- createdBy UserMini
- trashedAt string|()
- size int
- purgedAt string|()
- modifiedBy UserMini
- sharedLink record { isPasswordEnabled boolean, vanityName string|(), access "open"|"company"|"collaborators", permissions record { canEdit boolean, canPreview boolean, canDownload boolean, anydata... }, downloadUrl string|(), effectiveAccess "open"|"company"|"collaborators", effectivePermission "can_edit"|"can_download"|"can_preview"|"no_access", vanityUrl string|(), unsharedAt string|(), previewCount int, url string, downloadCount int, anydata... }|()
- contentModifiedAt string|()
- modifiedAt string
- pathCollection record { entries FolderMini[], totalCount int, anydata... }
- sha1 string
- fileVersion FileVersionMini
- sequenceId string|()
- name string
- etag string|()
- id string
- type "file"
- anydata...
- commentCount? int - The number of comments on this file.
- extension? string - Indicates the (optional) file extension for this file. By default, this is set to an empty string.
- metadata? record { record { MetadataFull... }... } -
- authenticatedDownloadUrl? string - A stable API URL for the file content endpoint,
/2.0/files/{id}/content. Unlikedownload_url, authorization is evaluated when the URL is requested with a valid access token. This field is only returned for files, not folders or web links.
- dispositionAt? string? - The retention expiration timestamp for the given file.
- allowedSharedLinkAccessLevels? ("open"|"company"|"collaborators")[] - The shared link access levels the authenticated user is allowed to use when creating or updating a shared link for this file. The list depends on item policy and user authorization, so it may be narrower than the levels available to the owner. An empty array means no access level is available to this user.
- versionNumber? string - The version number of this file.
- hasCollaborations? boolean - Specifies if this file has any other collaborators.
- expiresAt? string? - When the file will automatically be deleted.
- collections? Collection[] - The collections that this file belongs to. For more information, see the collections guide.
- permissions? record { canInviteCollaborator boolean, canSetShareAccess boolean, canDelete boolean, canShare boolean, canRename boolean, canDownload boolean, canComment boolean, canViewAnnotationsAll boolean, canUpload boolean, canPreview boolean, canViewAnnotationsSelf boolean, canAnnotate boolean, canApplyWatermark boolean } -
- isAssociatedWithAppItem? boolean - This field will return true if the file or any ancestor of the file is associated with at least one app item. Note that this will return true even if the context user does not have access to the app item(s) associated with the file.
- downloadUrl? string - A pre-authorized, expiring URL for directly downloading the file's content. Requires authentication and is valid only for the current session. This field is only returned for files, not folders or web links.
- isPackage? boolean - Indicates if the file is a package. Packages are commonly used by Mac Applications and can include iWork files.
- allowedInviteeRoles? ("editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner")[] - A list of the types of roles that user can be invited at when sharing this file.
- sharedLinkPermissionOptions? ("can_preview"|"can_download"|"can_edit")[]? - A list of the types of roles that user can be invited at when sharing this file.
- expiringEmbedLink? record { accessToken string, tokenType "bearer" , expiresIn int, restrictedTo ResourceScope[], url string } -
- isDownloadAvailable? boolean - Whether the file's binary content is eligible to be downloaded.
This is a content-level flag and does not reflect whether the
current user is authorized to download the file. Use
permissions.can_download, when available, for that.
- isExternallyOwned? boolean - Specifies if this file is owned by a user outside of the authenticated enterprise.
- isAccessibleViaSharedLink? boolean - Specifies if the file can be accessed via the direct shared link or a shared link to a parent folder.
- tags? string[] -
- uploaderDisplayName? string -
box: FileLock
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
- isDownloadPrevented? boolean - Defines if the file can be downloaded while it is locked
- access? "lock" - The type of this object
- expiresAt? string - Defines the time at which the lock expires
box: FileMini
A mini representation of a file, used when nested under another resource
Fields
- Fields Included from *FileBase
- sha1? string - The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a local file.
- fileVersion? FileVersionMini -
- sequenceId? string? -
- name? string - The name of the file.
box: FileRequest
A standard representation of a file request, as returned from any file request API endpoints by default
Fields
- 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
- createdAt string - The date and time when the file request was created
- isDescriptionRequired? 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
- 'type "file_request" - The value will always be
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
- createdBy? UserMini -
- 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
- isEmailRequired? 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
- expiresAt? string - The date after which a file request will no longer accept new
submissions.
After this date, the
statuswill automatically be set toinactive
- folder FolderMini -
- updatedAt string - The date and time when the file request was last updated
- updatedBy? UserMini -
- etag? string? - The HTTP
etagof this file. This can be used in combination with theIf-Matchheader when updating a file request. By providing that header, a change will only be performed on the file request if theetagon the file request still matches theetagprovided in theIf-Matchheader
- id string - The unique identifier for this file request
- status? "active"|"inactive" - 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 404status code. This defaults to status of file request that was copied to create this file request
box: FileRequestCopyRequest
The request body to copy a file request
Fields
- Fields Included from *FileRequestUpdateRequest
- folder FileRequestCopyRequest_folder - The folder to associate the new file request to.
box: FileRequestCopyRequest_folder
The folder to associate the new file request to.
Fields
- id string - The ID of the folder to associate the new file request to.
- 'type? "folder" - The value will always be
folder.
box: FileRequestUpdateRequest
The request body to update a file request
Fields
- expiresAt? string - The date after which a file request will no longer accept new
submissions.
After this date, the
statuswill automatically be set toinactive. 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
- isDescriptionRequired? 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
- 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
- status? "active"|"inactive" - 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 404status code. This will default to the value on the existing file request
- isEmailRequired? 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
box: Files
A list of files
Fields
- entries? FileFull[] - A list of files
- totalCount? int - The number of files
box: 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.
The 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
- parent FilescontentAttributesParent - The parent folder to upload the file to
- name string - The name of the file.
File names must be unique within their parent folder. The name check is case-insensitive, so a file
named
New Filecannot be created in a parent folder that already contains a folder namednew file
- contentCreatedAt? string - Defines the time the file was originally created at. If not set, the upload time will be used
- contentModifiedAt? string - Defines the time the file was last modified at. If not set, the upload time will be used
box: FilescontentAttributesParent
The parent folder to upload the file to
Fields
- id string - The id of the parent folder. Use
0for the user's root folder
box: FileSharedLinkPermissions
Defines who can download a file
Fields
- canDownload? "open"|"company" - Defines who is allowed to download this file. The possible
values are either
openfor everyone orcompanyfor the other members of the user's enterprise. This setting overrides the download permissions that are normally part of theroleof a collaboration. When set tocompany, this essentially removes the download option for external users withvieweroreditora roles
box: FilesOnHold
A list of files on hold for legal policy assignment
Fields
- Fields Included from *FilesOnHoldPart1
- Fields Included from *FilesOnHoldPart12
- entries FileMini[]
- anydata...
box: FilesOnHoldPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: FilesOnHoldPart12
Fields
- entries? FileMini[] - A list of files.
box: FilesUnderRetention
A list of files under retention
Fields
- Fields Included from *FilesUnderRetentionPart1
- Fields Included from *FilesUnderRetentionPart12
- entries FileMini[]
- anydata...
box: FilesUnderRetentionPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: FilesUnderRetentionPart12
Fields
- entries? FileMini[] - A list of files.
box: FileVersion
A standard representation of a file version
Fields
- Fields Included from *FileVersionMini
- restoredBy? UserMini -
- uploaderDisplayName? string -
- size? int - Size of the file version in bytes.
- name? string - The name of the file version.
- modifiedBy? UserMini -
- purgedAt? string? - When the file version object will be permanently deleted.
- createdAt? string - When the file version object was created.
- trashedBy? UserMini -
- modifiedAt? string - When the file version object was last updated.
- restoredAt? string? - When the file version was restored from the trash.
- trashedAt? string? - When the file version object was trashed.
box: 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 "file_version" - The value will always be
file_version
box: FileVersionFull
A full representation of a file version, as can be returned from any file version API endpoints by default
Fields
- Fields Included from *FileVersion
- versionNumber? string - The version number of this file version.
box: FileVersionLegalHold
File version legal hold is an entity representing all holds on a File Version
Fields
- fileVersion? FileVersionMini -
- file? FileMini? -
- legalHoldPolicyAssignments? LegalHoldPolicyAssignment[] - List of assignments contributing to this Hold
- id? string - The unique identifier for this file version legal hold
- 'type? "file_version_legal_hold" - The value will always be
file_version_legal_hold
- deletedAt? string - Time that this File-Version-Legal-Hold was deleted
box: FileVersionLegalHolds
A list of file versions with legal holds
Fields
- Fields Included from *FileVersionLegalHoldsPart1
- Fields Included from *FileVersionLegalHoldsPart12
- entries FileVersionLegalHold[]
- anydata...
box: FileVersionLegalHoldsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: FileVersionLegalHoldsPart12
Fields
- entries? FileVersionLegalHold[] - A list of file version legal holds.
box: FileVersionMini
A mini representation of a file version, used when nested within another resource
Fields
- Fields Included from *FileVersionBase
- id string
- type "file_version"
- anydata...
- sha1? string - The SHA1 hash of this version of the file.
box: 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 in your application management console.
Note: File retention API is now deprecated. To get information about files and file versions under retention, see files under retention or file versions under retention endpoints
Fields
- fileVersion? FileVersionMini -
- appliedAt? string - When this file version retention object was created
- file? FileMini? -
- dispositionAt? string - When the retention expires on this file version retention
- winningRetentionPolicy? RetentionPolicyMini -
- id? string - The unique identifier for this file version retention
- 'type? "file_version_retention" - The value will always be
file_version_retention
box: FileVersionRetentions
A list of file version retentions.
Note: File retention API is now deprecated. To get information about files and file versions under retention, see files under retention or file versions under retention endpoints
Fields
- Fields Included from *FileVersionRetentionsPart1
- Fields Included from *FileVersionRetentionsPart12
- entries FileVersionRetention[]
- anydata...
box: FileVersionRetentionsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: FileVersionRetentionsPart12
Fields
- entries? FileVersionRetention[] - A list of file version retentions.
box: FileVersions
A list of file versions
Fields
- Fields Included from *FileVersionsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *FileVersionsPart12
- entries FileVersionFull[]
- anydata...
box: FileVersionsOnHold
A list of files on hold for legal policy assignment
Fields
- Fields Included from *FileVersionsOnHoldPart1
- Fields Included from *FileVersionsOnHoldPart12
- entries FileVersion[]
- anydata...
box: FileVersionsOnHoldPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: FileVersionsOnHoldPart12
Fields
- entries? FileVersion[] - A list of file versions on hold.
box: FileVersionsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: FileVersionsPart12
Fields
- entries? FileVersionFull[] - A list of file versions.
box: FileWatermark
The watermark to imprint on the file
Fields
- imprint "default" - The type of watermark to apply. Currently only supports one option
box: FindAppItemForSharedLinkHeaders
Represents the Headers record for the operation: findAppItemForSharedLink
Fields
- boxapi string - A header containing the shared link and optional password for the
shared link.
The format for this header is
shared_link=[link]&shared_link_password=[password]
box: FindFileForSharedLinkHeaders
Represents the Headers record for the operation: findFileForSharedLink
Fields
- 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 - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
box: FindFileForSharedLinkQueries
Represents the Queries record for the operation: findFileForSharedLink
Fields
- fields? string[] - 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
box: FindFolderForSharedLinkHeaders
Represents the Headers record for the operation: findFolderForSharedLink
Fields
- 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 - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
box: FindFolderForSharedLinkQueries
Represents the Queries record for the operation: findFolderForSharedLink
Fields
- fields? string[] - 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
box: FindMetadataTemplateByInstanceIDQueries
Represents the Queries record for the operation: findMetadataTemplateByInstanceID
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- metadataInstanceId string - The ID of an instance of the metadata template to find
- 'limit? int - The maximum number of items to return per page
box: FindWebLinkForSharedLinkHeaders
Represents the Headers record for the operation: findWebLinkForSharedLink
Fields
- 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 - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
box: FindWebLinkForSharedLinkQueries
Represents the Queries record for the operation: findWebLinkForSharedLink
Fields
- fields? string[] - 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
box: Folder
A standard representation of a folder, as returned from any folder API endpoints by default
Fields
- Fields Included from *FolderMini
- parent? FolderMini? -
- createdAt? string? - The date and time when the folder was created. This value may
be
nullfor some folders such as the root folder or the trash folder.
- description? string -
- contentCreatedAt? string? - The date and time at which this folder was originally created.
- ownedBy? UserMini -
- itemStatus? "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted.
- itemCollection? Items -
- createdBy? UserMini -
- folder_upload_email? Folder_folder_upload_email? - The
folder_upload_emailparameter is notnullif one of the following options is true:- The Allow uploads to this folder via email and the Only allow email uploads from collaborators in this folder are enabled for a folder in the Admin Console, and the user has at least Upload permissions granted.
- The Allow uploads to this folder via email setting is enabled for a folder in the Admin Console, and the Only allow email uploads from collaborators in this folder setting is deactivated (unchecked).
folder_upload_email: null.
- trashedAt? string? - The time at which this folder was put in the trash.
- size? int - The folder size in bytes. Be careful parsing this integer as its value can get very large.
- modifiedBy? UserMini -
- purgedAt? string? - The time at which this folder is expected to be purged from the trash.
- sharedLink? record { isPasswordEnabled boolean, vanityName string?, access "open"|"company"|"collaborators" , permissions record { canEdit boolean, canPreview boolean, canDownload boolean }, downloadUrl string?, effectiveAccess "open"|"company"|"collaborators" , effectivePermission "can_edit"|"can_download"|"can_preview"|"no_access" , vanityUrl string?, unsharedAt string?, previewCount int, url string, downloadCount int }? -
- contentModifiedAt? string? - The date and time at which this folder was last updated.
- modifiedAt? string? - The date and time when the folder was last updated. This value may
be
nullfor some folders such as the root folder or the trash folder.
- pathCollection? record { entries FolderMini[], totalCount int } -
box: Folder_folder_upload_email
The folder_upload_email parameter is not null if one of the following options is true:
-
The Allow uploads to this folder via email and the Only allow email uploads from collaborators in this folder are enabled for a folder in the Admin Console, and the user has at least Upload permissions granted.
-
The Allow uploads to this folder via email setting is enabled for a folder in the Admin Console, and the Only allow email uploads from collaborators in this folder setting is deactivated (unchecked).
If the conditions are not met, the parameter will have the following value: folder_upload_email: null.
Fields
- access? "open"|"collaborators" - 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 toopenit will accept emails from any email address.
- email? string - The optional upload email address for this folder.
box: FolderBase
The bare basic representation of a folder, the minimal
amount of fields returned when using the fields query
parameter
Fields
- etag? string? - The HTTP
etagof this folder. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the folder if (no) changes have happened
- 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/123thefolder_idis123
- 'type "folder" - The value will always be
folder
box: FolderFull
A full representation of a folder, as can be returned from any folder API endpoints by default
Fields
- Fields Included from *Folder
- parent FolderMini|()
- createdAt string|()
- description string
- contentCreatedAt string|()
- ownedBy UserMini
- itemStatus "active"|"trashed"|"deleted"
- itemCollection Items
- createdBy UserMini
- folder_upload_email Folder_folder_upload_email|()
- trashedAt string|()
- size int
- modifiedBy UserMini
- purgedAt string|()
- sharedLink record { isPasswordEnabled boolean, vanityName string|(), access "open"|"company"|"collaborators", permissions record { canEdit boolean, canPreview boolean, canDownload boolean, anydata... }, downloadUrl string|(), effectiveAccess "open"|"company"|"collaborators", effectivePermission "can_edit"|"can_download"|"can_preview"|"no_access", vanityUrl string|(), unsharedAt string|(), previewCount int, url string, downloadCount int, anydata... }|()
- contentModifiedAt string|()
- modifiedAt string|()
- pathCollection record { entries FolderMini[], totalCount int, anydata... }
- sequenceId string|()
- name string
- etag string|()
- id string
- type "folder"
- anydata...
- isCollaborationRestrictedToEnterprise? boolean -
- metadata? record { record { MetadataFull... }... } -
- allowedInviteeRoles? ("editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner")[] - A list of the types of roles that user can be invited at when sharing this folder.
- allowedSharedLinkAccessLevels? ("open"|"company"|"collaborators")[] - The shared link access levels the authenticated user is allowed to use when creating or updating a shared link for this folder. The list depends on item policy and user authorization. For some folders, like the root folder, this is always empty as sharing is not allowed at that level.
- syncState? "synced"|"not_synced"|"partially_synced" -
- hasCollaborations? boolean - Specifies if this folder has any other collaborators.
- isExternallyOwned? boolean - Specifies if this folder is owned by a user outside of the authenticated enterprise.
- canNonOwnersInvite? boolean -
- isAccessibleViaSharedLink? boolean - Specifies if the folder can be accessed with the direct shared link or a shared link to a parent folder.
- tags? string[] -
- canNonOwnersViewCollaborators? boolean - Specifies if collaborators who are not owners of this folder are restricted from viewing other collaborations on this folder. It also restricts non-owners from inviting new collaborators.
- collections? Collection[] - The collections that this folder belongs to. For more information, see the collections guide.
- isAssociatedWithAppItem? boolean - This field will return true if the folder or any ancestor of the folder is associated with at least one app item. Note that this will return true even if the context user does not have access to the app item(s) associated with the folder.
box: FolderLock
Folder locks define access restrictions placed by folder owners to prevent specific folders from being moved or deleted
Fields
- folder? FolderMini -
- createdAt? string - When the folder lock object was created
- id? string - The unique identifier for this folder lock
- lockedOperations? FolderLockLockedOperations -
- 'type? string - The object type, always
folder_lock
- lockType? string - The lock type, always
freeze
- createdBy? UserBase -
box: 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
box: FolderLocks
A list of folder locks
Fields
- nextMarker? string? - The marker for the start of the next page of results
- entries? FolderLock[] - A list of folder locks
- 'limit? string - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: FolderLocksFolder
The folder to apply the lock to
Fields
- id string - The ID of the folder
- 'type string - The content type the lock is being applied to. Only
folderis supported
box: 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
box: FolderMini
A mini representation of a file version, used when nested under another resource
Fields
- Fields Included from *FolderBase
- sequenceId? string? -
- name? string - The name of the folder.
box: FolderReference
Folder reference
Fields
- id string - ID of the folder
- 'type "folder" - The value will always be
folder
box: FoldersParent
The parent folder to create the new folder within
Fields
- id string - The ID of parent folder
box: FolderWatermark
The watermark to imprint on the folder
Fields
- imprint "default" - The type of watermark to apply. Currently only supports one option
box: GenericSource
A generic event source type
box: GetAIAgentByAgentIDQueries
Represents the Queries record for the operation: getAIAgentByAgentID
Fields
- fields? string[] - The fields to return in the response
box: GetAIAgentDefaultConfigurationQueries
Represents the Queries record for the operation: getAIAgentDefaultConfiguration
Fields
- mode "ask"|"text_gen"|"extract"|"extract_structured" - The mode to filter the agent config to return
- language? string - The ISO language code to return the agent config for. If the language is not supported the default agent config is returned
- model? string - The model to return the default agent config for
box: GetCollaborationQueries
Represents the Queries record for the operation: getCollaboration
Fields
- fields? string[] - 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
box: GetCommentQueries
Represents the Queries record for the operation: getComment
Fields
- fields? string[] - 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
box: GetCurrentUserQueries
Represents the Queries record for the operation: getCurrentUser
Fields
- fields? string[] - 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
box: GetFileInformationHeaders
Represents the Headers record for the operation: getFileInformation
Fields
- boxapi? string - 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
- ifNoneMatch? string - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
- xRepHints? string? - A header required to request specific
representationsof a file. Use this in combination with thefieldsquery 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 apngrepresentation in32x32as well as64x64pixel dimensions provide the following hints.x-rep-hints: [jpg?dimensions=32x32][jpg?dimensions=64x64]Additionally, atextrepresentation is available for all document file types in Box using the[extracted_text]representation.x-rep-hints: [extracted_text]
box: GetFileInformationQueries
Represents the Queries record for the operation: getFileInformation
Fields
- fields? string[] - 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
metadatafield as well as the scope and key of the template to retrieve, for example?fields=metadata.enterprise_12345.contractTemplate
box: GetFilesUnderRetentionQueries
Represents the Queries record for the operation: getFilesUnderRetention
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: GetFileThumbnailQueries
Represents the Queries record for the operation: getFileThumbnail
Fields
- maxWidth? int - The maximum width of the thumbnail
- minHeight? int - The minimum height of the thumbnail
- maxHeight? int - The maximum height of the thumbnail
- minWidth? int - The minimum width of the thumbnail
box: GetFileVersionQueries
Represents the Queries record for the operation: getFileVersion
Fields
- fields? string[] - 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
box: GetFileVersionsUnderRetentionQueries
Represents the Queries record for the operation: getFileVersionsUnderRetention
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: GetFolderInformationHeaders
Represents the Headers record for the operation: getFolderInformation
Fields
- boxapi? string - 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
- ifNoneMatch? string - Ensures an item is only returned if it has changed.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a304 Not Modifiedif the item has not changed since
box: GetFolderInformationQueries
Represents the Queries record for the operation: getFolderInformation
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Offset-based pagination is not guaranteed to work reliably for high offset values and may fail for large datasets. In those cases, reduce the number of items in the folder (for example, by restructuring the folder into smaller subfolders) before retrying the request
- 'limit? int - The maximum number of items to return per page
- sort? "id"|"name"|"date"|"size" - Defines the second attribute by which items
are sorted.
The folder type affects the way the items
are sorted:
-
Standard folder:
Items are always sorted by
their
typefirst, with folders listed before files, and files listed before web links. - Root folder: This parameter is not supported for marker-based pagination on the root folder
idof0).- Shared folder with parent path
to the associated folder visible to
the collaborator:
Items are always sorted by
their
typefirst, with folders listed before files, and files listed before web links
-
Standard folder:
Items are always sorted by
their
- fields? string[] - 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
metadatafield as well as the scope and key of the template to retrieve, for example?fields=metadata.enterprise_12345.contractTemplate
- direction? "ASC"|"DESC" - The direction to sort results in. This can be either in alphabetical ascending
(
ASC) or descending (DESC) order
box: GetGroupMembershipQueries
Represents the Queries record for the operation: getGroupMembership
Fields
- fields? string[] - 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
box: GetGroupQueries
Represents the Queries record for the operation: getGroup
Fields
- fields? string[] - 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
box: GetMetadataInstanceOnFileQueries
Represents the Queries record for the operation: getMetadataInstanceOnFile
Fields
- view? string - Taxonomy field values are returned in
API viewby default, meaning the value is represented with a taxonomy node identifier. To retrieve theHydrated view, where taxonomy values are represented with the full taxonomy node information, set this parameter tohydrated. This is the only supported value for this parameter
box: GetMetadataTaxonomiesForNamespaceQueries
Represents the Queries record for the operation: getMetadataTaxonomiesForNamespace
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: GetRetentionPolicyAssignmentQueries
Represents the Queries record for the operation: getRetentionPolicyAssignment
Fields
- fields? string[] - 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
box: GetRetentionPolicyQueries
Represents the Queries record for the operation: getRetentionPolicy
Fields
- fields? string[] - 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
box: GetSharedLinkForFileQueries
Represents the Queries record for the operation: getSharedLinkForFile
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: GetSharedLinkForFolderQueries
Represents the Queries record for the operation: getSharedLinkForFolder
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: GetSharedLinkForWebLinkQueries
Represents the Queries record for the operation: getSharedLinkForWebLink
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: GetTrashedFileQueries
Represents the Queries record for the operation: getTrashedFile
Fields
- fields? string[] - 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
box: GetTrashedFolderQueries
Represents the Queries record for the operation: getTrashedFolder
Fields
- fields? string[] - 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
box: GetTrashedWebLinkQueries
Represents the Queries record for the operation: getTrashedWebLink
Fields
- fields? string[] - 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
box: GetUserInviteStatusQueries
Represents the Queries record for the operation: getUserInviteStatus
Fields
- fields? string[] - 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
box: GetUserQueries
Represents the Queries record for the operation: getUser
Fields
- fields? string[] - 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
box: GetWebLinkHeaders
Represents the Headers record for the operation: getWebLink
Fields
- boxapi? string - 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
box: Group
A standard representation of a group, as returned from any group API endpoints by default
Fields
- Fields Included from *GroupMini
- createdAt? string - When the group object was created.
- modifiedAt? string - When the group object was last modified.
box: GroupBase
A base representation of a group
Fields
- id string - The unique identifier for this object
- 'type "group" - The value will always be
group
box: 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
- provenance? string - Keeps track of which external source this group is coming from (e.g. "Active Directory", "Google Groups", "Facebook Groups"). Setting this will also prevent Box users from editing the group name and its members directly via the Box web application. This is desirable for one-way syncing of groups.
- invitabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - Specifies who can invite the group to collaborate
on items.
When set to
admins_onlythe enterprise admin, co-admins, and the group's admin can invite the group. When set toadmins_and_membersall the admins listed above and group members can invite the group. When set toall_managed_usersall managed users in the enterprise can invite the group.
- permissions? record { canInviteAsCollaborator boolean } -
- description? string - Human readable description of the group.
- externalSyncIdentifier? 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.
- memberViewabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - Specifies who can view the members of the group
(Get Memberships for 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.
box: GroupMembership
Membership is used to signify that a user is part of a group
Fields
- role? "member"|"admin" - The role of the user in the group
- createdAt? string - The time this membership was created
- id? string - The unique identifier for this group membership
- 'type? "group_membership" - The value will always be
group_membership
- modifiedAt? string - The time this membership was last modified
- user? UserMini -
- group? GroupMini -
box: GroupMemberships
A list of group memberships
Fields
- Fields Included from *GroupMembershipsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *GroupMembershipsPart12
- entries GroupMembership[]
- anydata...
box: GroupMembershipsGroup
The group to add the user to
Fields
- id string - The ID of the group to add the user to
box: GroupMembershipsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: GroupMembershipsPart12
Fields
- entries? GroupMembership[] - A list of group memberships.
box: GroupMembershipsUser
The user to add to the group
Fields
- id string - The ID of the user to add to the group
box: GroupMini
Mini representation of a group, including id and name of group
Fields
- Fields Included from *GroupBase
- id string
- type "group"
- anydata...
- name? string - The name of the group.
- groupType? "managed_group"|"all_users_group" - The type of the group.
box: Groups
A list of groups
Fields
- Fields Included from *GroupsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *GroupsPart12
- entries GroupFull[]
- anydata...
box: GroupsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: GroupsPart12
Fields
- entries? GroupFull[] - A list of groups.
box: InitialClassificationsFields
The enum field which holds all the valid classification
values
Fields
- hidden? boolean - Determines if the classification template is hidden or available on web and mobile devices
- displayName "Classification" - A display name for the classification
- options InitialClassificationsOptions[] - The actual list of classifications that are present on this template
- 'type "enum" - The type of the field that is always enum
- 'key "Box__Security__Classification__Key" - Defines classifications available in the enterprise
box: InitialClassificationsOptions
An individual classification
Fields
- staticConfig? InitialClassificationsStaticConfig - Additional information about the classification
- 'key string - The display name and key this classification. This will be show in the Box UI
box: InitialClassificationsStaticConfig
Additional information about the classification
Fields
- classification? InitialClassificationsStaticConfigClassification - Additional information about the classification
box: InitialClassificationsStaticConfigClassification
Additional information about the classification
Fields
- classificationDefinition? string - A longer description of the classification
- colorID? int - An identifier used to assign a color to
a classification label.
Mapping between a
colorIDand 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
box: IntegrationMapping
A Slack specific representation of an integration mapping object
Fields
- Fields Included from *IntegrationMappingBase
- id string
- type "integration_mapping"
- anydata...
- options? IntegrationMappingSlackOptions -
- modifiedBy? UserIntegrationMappings - The user who last modified the integration mapping.
- partnerItem IntegrationMappingPartnerItemSlack - Mapped item object for Slack.
- createdAt? string - When the integration mapping object was created.
- integrationType? "slack" - Identifies the Box partner app,
with which the mapping is associated.
Currently only supports Slack.
(part of the composite key together with
id).
- modifiedAt? string - When the integration mapping object was last modified.
- createdBy? UserIntegrationMappings - An object representing the user who created the integration mapping.
- isManuallyCreated? boolean - Identifies whether the mapping has been manually set (as opposed to being automatically created).
- boxItem FolderMini - The Box folder, to which the object from the
partner app domain (referenced in
partner_item_id) is mapped.
box: IntegrationMappingBase
A base representation of an integration mapping object
Fields
- id string - A unique identifier of a folder mapping
(part of a composite key together
with
integration_type)
- 'type "integration_mapping" - Mapping type
box: IntegrationMappingBoxItemSlack
The schema for an integration mapping Box item object for type Slack
Fields
- id string - ID of the mapped item (of type referenced in
type)
- 'type "folder" - Type of the mapped item referenced in
id
box: IntegrationMappingPartnerItemSlack
The schema for an integration mapping mapped item object for type Slack.
Depending if Box for Slack is installed at the org or workspace level,
provide either slack_org_id or slack_workspace_id.
Do not use both parameters at the same time
Fields
- slackOrgId? string? - ID of the Slack org with which the item is associated. Use this parameter if Box for Slack is installed at the org level. Do not use
slack_workspace_idat the same time
- id string - ID of the mapped item (of type referenced in
type)
- 'type "channel" - Type of the mapped item referenced in
id
- slackWorkspaceId? string? - ID of the Slack workspace with which the item is associated. Use this parameter if Box for Slack is installed at a workspace level. Do not use
slack_org_idat the same time
box: IntegrationMappingPartnerItemTeams
The schema for an integration mapping mapped item object for type Teams
Fields
- tenantId string - ID of the tenant that is registered with Microsoft Teams
- id string - ID of the mapped item (of type referenced in
type)
- 'type "channel"|"team" - Type of the mapped item referenced in
id
box: IntegrationMappingPartnerItemTeamsCreateRequest
The schema for an integration mapping mapped item object for type Teams
Fields
- tenantId string - ID of the tenant that is registered with Microsoft Teams
- id string - ID of the mapped item (of type referenced in
type)
- teamId string - ID of the team that is registered with Microsoft Teams
- 'type "channel"|"team" - Type of the mapped item referenced in
id
box: IntegrationMappings
A list of integration mapping objects
Fields
- Fields Included from *IntegrationMappingsPart1
- Fields Included from *IntegrationMappingsPart12
- entries IntegrationMapping[]
- anydata...
box: IntegrationMappingSlackCreateRequest
A request to create a Slack Integration Mapping object
Fields
- partnerItem IntegrationMappingPartnerItemSlack -
- options? IntegrationMappingSlackOptions -
- boxItem IntegrationMappingBoxItemSlack -
box: IntegrationMappingSlackOptions
The schema for an integration mapping options object for Slack type
Fields
- isAccessManagementDisabled? boolean - Indicates whether or not channel member access to the underlying box item should be automatically managed. Depending on type of channel, access is managed through creating collaborations or shared links
box: IntegrationMappingsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: IntegrationMappingsPart12
Fields
- entries? IntegrationMapping[] - A list of integration mappings.
box: IntegrationMappingsTeams
A list of integration mapping objects
Fields
- entries? IntegrationMappingTeams[] - A list of integration mappings.
box: IntegrationMappingTeams
A Microsoft Teams specific representation of an integration mapping object
Fields
- Fields Included from *IntegrationMappingBase
- id string
- type "integration_mapping"
- anydata...
- partnerItem IntegrationMappingPartnerItemTeams - Mapped item object for Teams.
- createdAt? string - When the integration mapping object was created.
- isOverriddenByManualMapping? boolean - Identifies whether the mapping has been manually set by the team owner from UI for channels (as opposed to being automatically created).
- integrationType? "teams" - Identifies the Box partner app,
with which the mapping is associated.
Supports Slack and Teams.
(part of the composite key together with
id).
- modifiedAt? string - When the integration mapping object was last modified.
- boxItem FolderReference -
box: IntegrationMappingTeamsCreateRequest
A request to create a Teams Integration Mapping object
Fields
- partnerItem IntegrationMappingPartnerItemTeamsCreateRequest -
- boxItem FolderReference -
box: Invite
An invite for a user to an enterprise
Fields
- actionableBy? UserMini -
- createdAt? string - When the invite was created
- id string - The unique identifier for this invite
- invitedBy? UserMini -
- 'type "invite" - The value will always be
invite
- modifiedAt? string - When the invite was modified
- invitedTo? Enterprise -
- status? string - The status of the invite
box: InvitesActionableBy
The user to invite
Fields
- login? string - The login of the invited user
box: InvitesEnterprise
The enterprise to invite the user to
Fields
- id string - The ID of the enterprise
box: Items
A list of files, folders, and web links in their mini representation
Fields
- Fields Included from *ItemsPart1
- Fields Included from *ItemsPart12
- offset int
- totalCount int
- order CollectionsOrder[]
- anydata...
- Fields Included from *ItemsPart123
- entries Item[]
- anydata...
box: ItemsOffsetPaginated
A list of files, folders, and web links in their mini representation
Fields
- Fields Included from *ItemsOffsetPaginatedPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *ItemsOffsetPaginatedPart12
- entries Item[]
- anydata...
box: ItemsOffsetPaginatedPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: ItemsOffsetPaginatedPart12
Fields
- entries? Item[] - The items in this collection.
box: ItemsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: ItemsPart12
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
- 'order? CollectionsOrder[] - 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
box: ItemsPart123
Fields
- entries? Item[] - The items in this collection.
box: KeywordSkillCard
A skill card that contains a set of keywords
Fields
- skillCardTitle? KeywordSkillCardSkillCardTitle -
- invocation KeywordSkillCardInvocation - 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
- skill KeywordSkillCardSkill - The service that applied this metadata
- createdAt? string - The optional date and time this card was created at
- 'type "skill_card" - The value will always be
skill_card
- skillCardType "keyword" - The value will always be
keyword
box: KeywordSkillCardEntries
An entry in the entries attribute of a metadata card
Fields
- text? string - The text of the keyword
box: KeywordSkillCardInvocation
The invocation of this service, used to track which instance of a service applied the metadata
Fields
- id string - A custom identifier that represent the instance of
the service that applied this metadata. For example,
if your
image-recognition-serviceruns on multiple nodes, this field can be used to identify the ID of the node that was used to apply the metadata
- 'type "skill_invocation" - The value will always be
skill_invocation
box: KeywordSkillCardSkill
The service that applied this metadata
Fields
- id string - A custom identifier that represent the service that applied this metadata
- 'type "service" - The value will always be
service
box: 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
box: LegalHoldPolicies
A list of legal hold policies
Fields
- Fields Included from *LegalHoldPoliciesPart1
- Fields Included from *LegalHoldPoliciesPart12
- entries LegalHoldPolicy[]
- anydata...
box: LegalHoldPoliciesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: LegalHoldPoliciesPart12
Fields
- entries? LegalHoldPolicy[] - A list of legal hold policies.
box: LegalHoldPolicy
Legal Hold Policy information describes the basic characteristics of the Policy, such as name, description, and filter dates
Fields
- Fields Included from *LegalHoldPolicyMini
- id string
- type "legal_hold_policy"
- anydata...
- assignment_counts? LegalHoldPolicy_assignment_counts - Counts of assignments within a legal hold policy by item type.
- releaseNotes? string - Optional notes about why the policy was created.
- policyName? string - Name of the legal hold policy.
- description? string - Description of the legal hold policy. Optional property with a 500 character limit.
- createdAt? string - When the legal hold policy object was created.
- filterEndedAt? string - User-specified, optional date filter applies to Custodian assignments only.
- modifiedAt? string - When the legal hold policy object was modified. Does not update when assignments are added or removed.
- createdBy? UserMini -
- deletedAt? string - When the policy release request was sent. (Because
it can take time for a policy to fully delete, this
isn't quite the same time that the policy is fully deleted).
If
null, the policy was not deleted.
- status? "active"|"applying"|"releasing"|"released" - Possible values:
- 'active' - the policy is not in a transition state.
- 'applying' - that the policy is in the process of being applied.
- 'releasing' - that the process is in the process of being released.
- 'released' - the policy is no longer active.
- filterStartedAt? string - User-specified, optional date filter applies to Custodian assignments only.
box: LegalHoldPolicy_assignment_counts
Counts of assignments within a legal hold policy by item type.
Fields
- fileVersion? int - The number of file versions 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.
- ownership? int - The number of users this policy is applied to with the
ownershiptype assignment.
- user? int - The number of users this policy is applied to with the
accesstype assignment.
- interactions? int - The number of users this policy is applied to with the
interactionstype assignment.
box: LegalHoldPolicyAssignedItem
The item that the legal hold policy is assigned to. Includes type and ID
Fields
- id string - The ID of the item the policy is assigned to
- 'type "file"|"file_version"|"folder"|"user"|"ownership"|"interactions" - The type of item the policy is assigned to
box: LegalHoldPolicyAssignment
Legal Hold Assignments are used to assign Legal Hold Policies to an item type of: Users, Folders, Files, File Versions, Ownership, or Interactions.
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
- id string
- type "legal_hold_policy_assignment"
- anydata...
- legalHoldPolicy? LegalHoldPolicyMini -
- assignedAt? string - When the legal hold policy assignment object was created.
- assignedBy? UserMini -
- deletedAt? string - When the assignment release request was sent. (Because it can take time for an assignment to fully delete, this isn't quite the same time that the assignment is fully deleted). If null, Assignment was not deleted.
- assignedTo? LegalHoldPolicyAssignedItem -
box: 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? "legal_hold_policy_assignment" - The value will always be
legal_hold_policy_assignment
box: LegalHoldPolicyAssignments
A list of legal hold policies assignments
Fields
- Fields Included from *LegalHoldPolicyAssignmentsPart1
- Fields Included from *LegalHoldPolicyAssignmentsPart12
- entries LegalHoldPolicyAssignment[]
- anydata...
box: LegalHoldPolicyAssignmentsAssignTo
The item to assign the policy to
Fields
- id string - The ID of item to assign the policy to
- 'type "file"|"file_version"|"folder"|"user"|"ownership"|"interactions" - The type of item to assign the policy to
box: LegalHoldPolicyAssignmentsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: LegalHoldPolicyAssignmentsPart12
Fields
- entries? LegalHoldPolicyAssignment[] - A list of legal hold policy assignments.
box: LegalHoldPolicyMini
A mini legal hold policy
Fields
- id string - The unique identifier for this legal hold policy
- 'type "legal_hold_policy" - The value will always be
legal_hold_policy
box: ListAIAgentsQueries
Represents the Queries record for the operation: listAIAgents
Fields
- mode? string[] - The mode to filter the agent config to return. Possible values are:
ask,text_gen, andextract
- marker? string - Defines the position marker at which to begin returning results
- agentState? string[] - The state of the agents to return. Possible values are:
enabled,disabledandenabled_for_selected_users
- 'limit? int - The maximum number of items to return per page
- includeBoxDefault boolean(default false) - Whether to include the Box default agents in the response
- fields? string[] - The fields to return in the response
box: ListAllCollectionsQueries
Represents the Queries record for the operation: listAllCollections
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListAllFileVersionsQueries
Represents the Queries record for the operation: listAllFileVersions
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListAllGlobalMetadataTemplatesQueries
Represents the Queries record for the operation: listAllGlobalMetadataTemplates
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListAllLegalHoldPoliciesQueries
Represents the Queries record for the operation: listAllLegalHoldPolicies
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- policyName? string - Limits results to policies for which the names start with this search term. This is a case-insensitive prefix
- fields? string[] - 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
box: ListAllMetadataTemplatesForEnterpriseQueries
Represents the Queries record for the operation: listAllMetadataTemplatesForEnterprise
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListAllowedCollaborationDomainsQueries
Represents the Queries record for the operation: listAllowedCollaborationDomains
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListAllWebhooksQueries
Represents the Queries record for the operation: listAllWebhooks
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListCollabDomainExemptUsersQueries
Represents the Queries record for the operation: listCollabDomainExemptUsers
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListCollectionItemsQueries
Represents the Queries record for the operation: listCollectionItems
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListEnterpriseDevicePinsQueries
Represents the Queries record for the operation: listEnterpriseDevicePins
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- direction? "ASC"|"DESC" - The direction to sort results in. This can be either in alphabetical ascending
(
ASC) or descending (DESC) order
box: ListEnterpriseUsersQueries
Represents the Queries record for the operation: listEnterpriseUsers
Fields
- userType? "all"|"managed"|"external" - Limits the results to the kind of user specified.
allreturns every kind of user for whom theloginornamepartially matches thefilter_term. It will only return an external user if the login matches thefilter_termcompletely, and in that case it will only return that user.managedreturns all managed and app users for whom theloginornamepartially matches thefilter_term.externalreturns all external users for whom theloginmatches thefilter_termexactly
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- filterTerm? string - Limits the results to only users who's
nameorloginstart 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
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
- externalAppUserId? string - Limits the results to app users with the given
external_app_user_idvalue. When creating an app user, anexternal_app_user_idvalue can be set. This value can then be used in this endpoint to find any users that match thatexternal_app_user_idvalue
- usemarker? boolean - 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
markerfield that can be passed as a parameter to this endpoint to get the next page of the response
box: ListFileAppItemAssociationsQueries
Represents the Queries record for the operation: listFileAppItemAssociations
Fields
- applicationType? string - If given, only return app items for this application type
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListFileCollaborationsQueries
Represents the Queries record for the operation: listFileCollaborations
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListFileCommentsQueries
Represents the Queries record for the operation: listFileComments
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListFilesOnLegalHoldQueries
Represents the Queries record for the operation: listFilesOnLegalHold
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListFileVersionLegalHoldsQueries
Represents the Queries record for the operation: listFileVersionLegalHolds
Fields
- policyId string - The ID of the legal hold policy to get the file version legal holds for
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListFileVersionRetentionsQueries
Represents the Queries record for the operation: listFileVersionRetentions
Fields
- dispositionAction? "permanently_delete"|"remove_retention" - Filters results by the retention policy with this disposition action
- policyId? string - Filters results by the retention policy with this ID
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- fileId? string - Filters results by files with this ID
- 'limit? int - The maximum number of items to return per page
- dispositionAfter? string - Filters results by files that will have their disposition come into effect after this date
- fileVersionId? string - Filters results by file versions with this ID
- dispositionBefore? string - Filters results by files that will have their disposition come into effect before this date
box: ListFileVersionsOnLegalHoldQueries
Represents the Queries record for the operation: listFileVersionsOnLegalHold
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListFolderAppItemAssociationsQueries
Represents the Queries record for the operation: listFolderAppItemAssociations
Fields
- applicationType? string - If given, returns only app items for this application type
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListFolderCollaborationsQueries
Represents the Queries record for the operation: listFolderCollaborations
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListFolderLocksQueries
Represents the Queries record for the operation: listFolderLocks
Fields
- 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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
box: ListGroupCollaborationsQueries
Represents the Queries record for the operation: listGroupCollaborations
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
box: ListGroupsForEnterpriseQueries
Represents the Queries record for the operation: listGroupsForEnterprise
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- filterTerm? string - Limits the results to only groups whose
namestarts with the search term
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListItemsInFolderHeaders
Represents the Headers record for the operation: listItemsInFolder
Fields
- boxapi? string - 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
box: ListItemsInFolderQueries
Represents the Queries record for the operation: listItemsInFolder
Fields
- offset int(default 0) - The offset of the item at which to begin the response.
Offset-based pagination is not guaranteed to work reliably for high offset values and may fail for large datasets. In
those cases, use marker-based pagination by setting
usemarkertotrue
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- sort? "id"|"name"|"date"|"size" - Defines the second attribute by which items
are sorted.
The folder type affects the way the items
are sorted:
-
Standard folder:
Items are always sorted by
their
typefirst, with folders listed before files, and files listed before web links. - Root folder: This parameter is not supported for marker-based pagination on the root folder
idof0).- Shared folder with parent path
to the associated folder visible to
the collaborator:
Items are always sorted by
their
typefirst, with folders listed before files, and files listed before web links
-
Standard folder:
Items are always sorted by
their
- fields? string[] - 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
metadatafield as well as the scope and key of the template to retrieve, for example?fields=metadata.enterprise_12345.contractTemplate
- usemarker? boolean - 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
markerfield that can be passed as a parameter to this endpoint to get the next page of the response
- direction? "ASC"|"DESC" - The direction to sort results in. This can be either in alphabetical ascending
(
ASC) or descending (DESC) order
box: ListLegalHoldPolicyAssignmentsQueries
Represents the Queries record for the operation: listLegalHoldPolicyAssignments
Fields
- policyId string - The ID of the legal hold policy
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- assignToId? string - Filters the results by the ID of item the policy was applied to
- fields? string[] - 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
- assignToType? "file"|"file_version"|"folder"|"user"|"ownership"|"interactions" - Filters the results by the type of item the policy was applied to
box: ListMembersOfGroupQueries
Represents the Queries record for the operation: listMembersOfGroup
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
box: ListMetadataCascadePoliciesQueries
Represents the Queries record for the operation: listMetadataCascadePolicies
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- folderId string - Specifies which folder to return policies for. This can not be used on the
root folder with ID
0
- ownerEnterpriseId? string - The ID of the enterprise ID for which to find metadata cascade policies. If not specified, it defaults to the current enterprise
box: ListMetadataInstancesOnFileQueries
Represents the Queries record for the operation: listMetadataInstancesOnFile
Fields
- view? string - Taxonomy field values are returned in
API viewby default, meaning the value is represented with a taxonomy node identifier. To retrieve theHydrated view, where taxonomy values are represented with the full taxonomy node information, set this parameter tohydrated. This is the only supported value for this parameter
box: ListMetadataInstancesOnFolderQueries
Represents the Queries record for the operation: listMetadataInstancesOnFolder
Fields
- view? string - Taxonomy field values are returned in
API viewby default, meaning the value is represented with a taxonomy node identifier. To retrieve theHydrated view, where taxonomy values are represented with the full taxonomy node information, set this parameter tohydrated. This is the only supported value for this parameter
box: ListMetadataTaxonomyNodesQueries
Represents the Queries record for the operation: listMetadataTaxonomyNodes
Fields
- parent? string[] - Node identifier of a direct parent node. Multiple values can be provided. Results include nodes that match any of the specified values
- level? int[] - Filters results by taxonomy level. Multiple values can be provided. Results include nodes that match any of the specified values
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- ancestor? string[] - Node identifier of any ancestor node. Multiple values can be provided. Results include nodes that match any of the specified values
- query? string - Query text to search for the taxonomy nodes
- includeTotalResultCount? boolean - When set to
truethis provides the total number of nodes that matched the query. The response will compute counts of up to 10,000 elements. Defaults tofalse
- 'limit? int - The maximum number of items to return per page
box: ListPartsQueries
Represents the Queries record for the operation: listParts
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
box: ListPendingCollaborationsQueries
Represents the Queries record for the operation: listPendingCollaborations
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
- status "pending" - The status of the collaborations to retrieve
box: ListRecentlyAccessedItemsQueries
Represents the Queries record for the operation: listRecentlyAccessedItems
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListRetentionPoliciesQueries
Represents the Queries record for the operation: listRetentionPolicies
Fields
- policyType? "finite"|"indefinite" - Filters results by the type of retention policy
- marker? string - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination
- 'limit? int - The maximum number of items to return per page
- policyName? string - Filters results by a case sensitive prefix of the name of retention policies
- fields? string[] - 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
- createdByUserId? string - Filters results by the ID of the user who created policy
box: ListRetentionPolicyAssignmentsQueries
Represents the Queries record for the operation: listRetentionPolicyAssignments
Fields
- marker? string - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination
- 'limit? int - The maximum number of items to return per page
- 'type? "folder"|"enterprise"|"metadata_template" - The type of the retention policy assignment to retrieve
- fields? string[] - 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
box: ListShieldBarrierReportsQueries
Represents the Queries record for the operation: listShieldBarrierReports
Fields
- shieldInformationBarrierId string - The ID of the shield information barrier
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListShieldBarrierRestrictionsQueries
Represents the Queries record for the operation: listShieldBarrierRestrictions
Fields
- shieldInformationBarrierSegmentId string - The ID of the shield information barrier segment
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListShieldBarrierSegmentMembersQueries
Represents the Queries record for the operation: listShieldBarrierSegmentMembers
Fields
- shieldInformationBarrierSegmentId string - The ID of the shield information barrier segment
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListShieldBarrierSegmentsQueries
Represents the Queries record for the operation: listShieldBarrierSegments
Fields
- shieldInformationBarrierId string - The ID of the shield information barrier
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListShieldBarriersQueries
Represents the Queries record for the operation: listShieldBarriers
Fields
- marker? string - Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination
- 'limit? int - The maximum number of items to return per page
box: ListSignRequestsQueries
Represents the Queries record for the operation: listSignRequests
Fields
- sharedRequests boolean(default false) - If set to
true, only includes requests that user is not an owner, but user is a collaborator. Collaborator access is determined by the user access level of the sign files of the request. Default isfalse. Must be set totrueifsendersare provided
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- senders? string[] - A list of sender emails to filter the signature requests by sender.
If provided,
shared_requestsmust be set totrue
box: ListSignTemplatesQueries
Represents the Queries record for the operation: listSignTemplates
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
box: ListSlackIntegrationMappingsQueries
Represents the Queries record for the operation: listSlackIntegrationMappings
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- boxItemType? "folder" - Box item type, for which the mappings should be returned
- 'limit? int - The maximum number of items to return per page
- partnerItemType? "channel" - Mapped item type, for which the mapping should be returned
- partnerItemId? string - ID of the mapped item, for which the mapping should be returned
- boxItemId? string - Box item ID, for which the mappings should be returned
- isManuallyCreated? boolean - Whether the mapping has been manually created
box: ListStoragePoliciesQueries
Represents the Queries record for the operation: listStoragePolicies
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- fields? string[] - 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
box: ListStoragePolicyAssignmentsQueries
Represents the Queries record for the operation: listStoragePolicyAssignments
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- resolvedForId string - The ID of the user or enterprise to return assignments for
- resolvedForType "user"|"enterprise" - The target type to return assignments for
box: ListTaxonomyFieldOptionsQueries
Represents the Queries record for the operation: listTaxonomyFieldOptions
Fields
- parent? string[] - Node identifier of a direct parent node. Multiple values can be provided. Results include nodes that match any of the specified values
- level? int[] - Filters results by taxonomy level. Multiple values can be provided. Results include nodes that match any of the specified values
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- ancestor? string[] - Node identifier of any ancestor node. Multiple values can be provided. Results include nodes that match any of the specified values
- query? string - Query text to search for the taxonomy nodes
- includeTotalResultCount? boolean - When set to
truethis provides the total number of nodes that matched the query. The response will compute counts of up to 10,000 elements. Defaults tofalse
- onlySelectableOptions? boolean - When set to
true, this only returns valid selectable options for this template taxonomy field. Otherwise, it returns all taxonomy nodes, whether or not they are selectable. Defaults totrue
- 'limit? int - The maximum number of items to return per page
box: ListTeamsIntegrationMappingsQueries
Represents the Queries record for the operation: listTeamsIntegrationMappings
Fields
- boxItemType? "folder" - Box item type, for which the mappings should be returned
- partnerItemType? "channel"|"team" - Mapped item type, for which the mapping should be returned
- partnerItemId? string - ID of the mapped item, for which the mapping should be returned
- boxItemId? string - Box item ID, for which the mappings should be returned
box: ListTermsOfServicesQueries
Represents the Queries record for the operation: listTermsOfServices
Fields
- tosType? "external"|"managed" - Limits the results to the terms of service of the given type
box: ListTermsOfServiceUserStatusesQueries
Represents the Queries record for the operation: listTermsOfServiceUserStatuses
Fields
- userId? string - Limits results to the given user ID
- tosId string - The ID of the terms of service
box: ListTrashedItemsQueries
Represents the Queries record for the operation: listTrashedItems
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- 'limit? int - The maximum number of items to return per page
- sort? "name"|"date"|"size" - Defines the second attribute by which items
are sorted.
Items are always sorted by their
typefirst, with folders listed before files, and files listed before web links. This parameter is not supported when using marker-based pagination
- fields? string[] - 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
- usemarker? boolean - 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
markerfield that can be passed as a parameter to this endpoint to get the next page of the response
- direction? "ASC"|"DESC" - The direction to sort results in. This can be either in alphabetical ascending
(
ASC) or descending (DESC) order
box: ListUserAndEnterpriseEventsQueries
Represents the Queries record for the operation: listUserAndEnterpriseEvents
Fields
- eventType? ("ACCESS_GRANTED"|"ACCESS_REVOKED"|"ADD_DEVICE_ASSOCIATION"|"ADD_LOGIN_ACTIVITY_DEVICE"|"ADMIN_LOGIN"|"ADVANCED_FOLDER_SETTINGS_UPDATE"|"APPLICATION_CREATED"|"APPLICATION_PUBLIC_KEY_ADDED"|"APPLICATION_PUBLIC_KEY_DELETED"|"CHANGE_ADMIN_ROLE"|"CHANGE_FOLDER_PERMISSION"|"COLLABORATION_ACCEPT"|"COLLABORATION_EXPIRATION"|"COLLABORATION_INVITE"|"COLLABORATION_REMOVE"|"COLLABORATION_ROLE_CHANGE"|"COMMENT_CREATE"|"COMMENT_DELETE"|"COMMENT_EDIT"|"CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY"|"CONTENT_WORKFLOW_AUTOMATION_ADD"|"CONTENT_WORKFLOW_AUTOMATION_DELETE"|"CONTENT_WORKFLOW_POLICY_ADD"|"CONTENT_WORKFLOW_SHARING_POLICY_VIOLATION"|"CONTENT_WORKFLOW_UPLOAD_POLICY_VIOLATION"|"COPY"|"DATA_RETENTION_CREATE_RETENTION"|"DATA_RETENTION_REMOVE_RETENTION"|"DELETE"|"DELETE_USER"|"DEVICE_TRUST_CHECK_FAILED"|"DOWNLOAD"|"EDIT"|"EDIT_USER"|"EMAIL_ALIAS_CONFIRM"|"EMAIL_ALIAS_PRIMARY"|"EMAIL_ALIAS_REMOVE"|"EMAIL_UPLOAD_DISABLED"|"EMAIL_UPLOAD_ENABLED"|"ENTERPRISE_APP_AUTHORIZATION_UPDATE"|"EXTERNAL_COLLAB_SECURITY_SETTINGS"|"FAILED_LOGIN"|"FAVORITE"|"FILE_MARKED_MALICIOUS"|"FILE_REQUEST_CREATE"|"FILE_REQUEST_DELETE"|"FILE_REQUEST_UPDATE"|"FILE_VERSION_RESTORE"|"FILE_WATERMARKED_DOWNLOAD"|"GROUP_ADD_ITEM"|"GROUP_ADD_USER"|"GROUP_CREATION"|"GROUP_DELETION"|"GROUP_EDITED"|"GROUP_REMOVE_ITEM"|"GROUP_REMOVE_USER"|"ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER"|"ITEM_EMAIL_SEND"|"ITEM_MODIFY"|"ITEM_OPEN"|"ITEM_SHARED_UPDATE"|"ITEM_SYNC"|"ITEM_UNSYNC"|"LEGAL_HOLD_ASSIGNMENT_CREATE"|"LEGAL_HOLD_ASSIGNMENT_DELETE"|"LEGAL_HOLD_POLICY_CREATE"|"LEGAL_HOLD_POLICY_DELETE"|"LEGAL_HOLD_POLICY_UPDATE"|"LOCK"|"LOGIN"|"METADATA_CASCADE_POLICY_APPLY"|"METADATA_CASCADE_POLICY_CREATE"|"METADATA_INSTANCE_COPY"|"METADATA_INSTANCE_CREATE"|"METADATA_INSTANCE_DELETE"|"METADATA_INSTANCE_UPDATE"|"METADATA_TEMPLATE_CREATE"|"METADATA_TEMPLATE_DELETE"|"METADATA_TEMPLATE_UPDATE"|"MOVE"|"NEW_USER"|"OAUTH2_ACCESS_TOKEN_REVOKE"|"OAUTH2_REFRESH_TOKEN_REVOKE"|"PREVIEW"|"REMOVE_DEVICE_ASSOCIATION"|"REMOVE_LOGIN_ACTIVITY_DEVICE"|"RENAME"|"RETENTION_POLICY_ASSIGNMENT_ADD"|"SHARE"|"SHARED_LINK_SEND"|"SHARE_EXPIRATION"|"SHIELD_ALERT"|"SHIELD_DOWNLOAD_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_ACCESS_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_ACCESS_BLOCKED_MISSING_JUSTIFICATION"|"SHIELD_EXTERNAL_COLLAB_INVITE_BLOCKED"|"SHIELD_EXTERNAL_COLLAB_INVITE_BLOCKED_MISSING_JUSTIFICATION"|"SHIELD_JUSTIFICATION_APPROVAL"|"SHIELD_PREVIEW_BLOCKED"|"SHIELD_SHARED_LINK_ACCESS_BLOCKED"|"SHIELD_SHARED_LINK_STATUS_RESTRICTED_ON_CREATE"|"SHIELD_SHARED_LINK_STATUS_RESTRICTED_ON_UPDATE"|"SIGN_DOCUMENT_ASSIGNED"|"SIGN_DOCUMENT_CANCELLED"|"SIGN_DOCUMENT_COMPLETED"|"SIGN_DOCUMENT_CONVERTED"|"SIGN_DOCUMENT_CREATED"|"SIGN_DOCUMENT_DECLINED"|"SIGN_DOCUMENT_EXPIRED"|"SIGN_DOCUMENT_SIGNED"|"SIGN_DOCUMENT_VIEWED_BY_SIGNED"|"SIGNER_DOWNLOADED"|"SIGNER_FORWARDED"|"STORAGE_EXPIRATION"|"TASK_ASSIGNMENT_CREATE"|"TASK_ASSIGNMENT_DELETE"|"TASK_ASSIGNMENT_UPDATE"|"TASK_CREATE"|"TASK_UPDATE"|"TERMS_OF_SERVICE_ACCEPT"|"TERMS_OF_SERVICE_REJECT"|"UNDELETE"|"UNFAVORITE"|"UNLOCK"|"UNSHARE"|"UPDATE_COLLABORATION_EXPIRATION"|"UPDATE_SHARE_EXPIRATION"|"UPLOAD"|"USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE"|"WATERMARK_LABEL_CREATE"|"WATERMARK_LABEL_DELETE"|"WORKFLOW_AUTOMATION_CREATE"|"WORKFLOW_AUTOMATION_DELETE"|"WORKFLOW_AUTOMATION_UPDATE")[] - A comma-separated list of events to filter by. This can only be used when
requesting the events with a
stream_typeofadmin_logsoradming_logs_streaming. For any otherstream_typethis value will be ignored
- createdAfter? string - The lower bound date and time to return events for. This can only be used
when requesting the events with a
stream_typeofadmin_logs. For any otherstream_typethis value will be ignored
- createdBefore? string - The upper bound date and time to return events for. This can only be used
when requesting the events with a
stream_typeofadmin_logs. For any otherstream_typethis value will be ignored
- streamType "all"|"changes"|"sync"|"admin_logs"|"admin_logs_streaming" (default "all") - Defines the type of events that are returned
allreturns everything for a user and is the defaultchangesreturns events that may cause file tree changes such as file updates or collaborations.syncis similar tochangesbut only applies to synced foldersadmin_logsreturns all events for an entire enterprise and requires the user making the API call to have admin permissions. This stream type is for programmatically pulling from a 1 year history of events across all users within the enterprise and within acreated_afterandcreated_beforetime frame. The complete history of events will be returned in chronological order based on the event time, but latency will be much higher thanadmin_logs_streaming.admin_logs_streamingreturns all events for an entire enterprise and requires the user making the API call to have admin permissions. This stream type is for polling for recent events across all users within the enterprise. Latency will be much lower thanadmin_logs, but events will not be returned in chronological order and may contain duplicates
- 'limit int(default 100) - Limits the number of events returned. Note: Sometimes, the events less than the limit requested can be returned even when there may be more events remaining. This is primarily done in the case where a number of events have already been retrieved and these retrieved events are returned rather than delaying for an unknown amount of time to see if there are any more results
- streamPosition? string - The location in the event stream to start receiving events from.
nowwill return an empty list events and the latest stream position for initialization.0ornullwill return all events
box: ListUserGroupsQueries
Represents the Queries record for the operation: listUserGroups
Fields
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- 'limit? int - The maximum number of items to return per page
box: ListWorkflowsQueries
Represents the Queries record for the operation: listWorkflows
Fields
- marker? string - Defines the position marker at which to begin returning results. This is
used when paginating using marker-based pagination.
This requires
usemarkerto be set totrue
- triggerType? string - Type of trigger to search for
- 'limit? int - The maximum number of items to return per page
- 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/123thefolder_idis123. The root folder of a Box account is always represented by the ID0
box: MetadataBase
The base representation of a metadata instance
Fields
- dollarScope? string - An ID for the scope in which this template
has been applied. This will be
enterprise_{enterprise_id}for templates defined for use in this enterprise, andglobalfor general templates that are available to all enterprises using Box
- dollarTemplate? string - The name of the template
- dollarParent? string - The identifier of the item that this metadata instance
has been attached to. This combines the
typeand theidof the parent in the form{type}_{id}
- dollarVersion? int - The version of the metadata instance. This version starts at 0 and increases every time a user-defined property is modified
box: MetadataCascadePolicies
A list of metadata cascade policies
Fields
- Fields Included from *MetadataCascadePoliciesPart1
- Fields Included from *MetadataCascadePoliciesPart12
- entries MetadataCascadePolicy[]
- anydata...
box: MetadataCascadePoliciesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: MetadataCascadePoliciesPart12
Fields
- entries? MetadataCascadePolicy[] - A list of metadata cascade policies.
box: MetadataCascadePolicy
A metadata cascade policy automatically applies a metadata template instance to all the files and folders within the targeted folder
Fields
- ownerEnterprise? MetadataCascadePolicyOwnerEnterprise -
- parent? MetadataCascadePolicyParent - Represent the folder the policy is applied to
- scope? string - The scope of the metadata cascade policy can either be
globalorenterprise_*. Theglobalscope is used for policies that are available to any Box enterprise. Theenterprise_*scope represents policies that have been created within a specific enterprise, where*will be the ID of that enterprise
- id string - The ID of the metadata cascade policy object
- 'type "metadata_cascade_policy" - The value will always be
metadata_cascade_policy
- templateKey? string - The key of the template that is cascaded down to the folder's
children.
In many cases the template key is automatically derived
of its display name, for example
Contract Templatewould becomecontractTemplate. In some cases the creator of the template will have provided its own template key. Please list the templates for an enterprise, or get all instances on a file or folder to inspect a template's key.
box: MetadataCascadePolicyOwnerEnterprise
The enterprise that owns this policy
Fields
- id? string - The ID of the enterprise that owns the policy
- 'type? "enterprise" - The value will always be
enterprise
box: MetadataCascadePolicyParent
Represent the folder the policy is applied to
Fields
- id? string - The ID of the folder the policy is applied to
- 'type? "folder" - The value will always be
folder
box: MetadataFieldRead
A field within a metadata template. Fields can be a basic text, date, or number field, a list of options, or a taxonomy
Fields
- hidden? boolean - Whether this field is hidden in the UI for the user and can only be set through the API instead
- taxonomyKey? string - The unique key of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- displayName string - The display name of the field as it is shown to the user in the web and mobile apps
- taxonomyId? string - The unique ID of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- options? MetadataOptionWrite[] - A list of options for this field. This is used in combination with the
enumandmultiSelectfield types
- namespace? string - The namespace of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- description? string - A description of the field. This is not shown to the user
- 'type "string"|"float"|"date"|"enum"|"multiSelect"|"taxonomy"|"integer" - The type of field. The basic fields are a
stringfield for text, afloatfield for numbers, and adatefields to present the user with a date-time picker. Additionally, metadata templates support anenumfield for a basic list of items, andmultiSelectfield for a similar list of items where the user can select more than one value. Metadata taxonomies are also supported as ataxonomyfield type with a specific set of additional properties, which describe its structure. Note: Theintegervalue is deprecated. It is still present in the response, but cannot be used in the POST request
- optionsRules? MetadataTemplateOptionsRules - An object defining additional rules for the options of the taxonomy field.
This property is required when the field
typeis set totaxonomy
- 'key string - A unique identifier for the field. The identifier must be unique within the template to which it belongs
box: MetadataFieldReadVariant2
Fields
- id? string - The unique ID of the metadata template field.
box: MetadataFieldWrite
A field within a metadata template. Fields can be a basic text, date, or number field, a list of options, or a taxonomy
Fields
- hidden? boolean - Whether this field is hidden in the UI for the user and can only be set through the API instead
- taxonomyKey? string - The unique key of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- displayName string - The display name of the field as it is shown to the user in the web and mobile apps
- taxonomyId? string - The unique ID of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- options? MetadataOptionWrite[] - A list of options for this field. This is used in combination with the
enumandmultiSelectfield types
- namespace? string - The namespace of the metadata taxonomy to use for this taxonomy field.
This property is required when the field
typeis set totaxonomy
- description? string - A description of the field. This is not shown to the user
- 'type "string"|"float"|"date"|"enum"|"multiSelect"|"taxonomy" - The type of field. The basic fields are a
stringfield for text, afloatfield for numbers, and adatefield to present the user with a date-time picker. Additionally, metadata templates support anenumfield for a basic list of items, andmultiSelectfield for a similar list of items where the user can select more than one value. Metadata taxonomies are also supported as ataxonomyfield type with a specific set of additional properties, which describe its structure
- optionsRules? MetadataTemplateOptionsRules - An object defining additional rules for the options of the taxonomy field.
This property is required when the field
typeis set totaxonomy
- 'key string - A unique identifier for the field. The identifier must be unique within the template to which it belongs
box: MetadataFilter
A metadata template used to filter the search results
Fields
- scope? "global"|"enterprise"|"enterprise_{enterprise_id}" - Specifies the scope of the template to filter search results by.
This will be
enterprise_{enterprise_id}for templates defined for use in this enterprise, andglobalfor general templates that are available to all enterprises using Box
- filters? record {} - Specifies which fields on the template to filter the search
results by. When more than one field is specified, the query
performs a logical
ANDto ensure that the instance of the template matches each of the fields specified
- templateKey? string - The key of the template used to filter search results.
In many cases the template key is automatically derived
of its display name, for example
Contract Templatewould becomecontractTemplate. In some cases the creator of the template will have provided its own template key. Please list the templates for an enterprise, or get all instances on a file or folder to inspect a template's key.
box: MetadataFull
An instance of a metadata template, which has been applied to a file or folder
Fields
- Fields Included from *MetadataFullPart2
- Fields Included from *MetadataFullPart23
- anydata...
box: MetadataFullPart2
Fields
- \$canEdit? boolean - Whether the user can edit this metadata instance.
- \$id? string - A UUID to identify the metadata instance.
- \$type? string - A unique identifier for the "type" of this instance. This is an internal system property and should not be used by a client application.
- \$typeVersion? int - The last-known version of the template of the object. This is an internal system property and should not be used by a client application.
box: MetadataFullPart23
box: MetadataOptionWrite
An option for a Metadata Template Field.
Options only need to be provided for fields of type enum and multiSelect.
Options represent the value(s) a user can select for the field either through
the UI or through the API
Fields
- 'key string - The text value of the option. This represents both the display name of the option and the internal key used when updating templates
box: MetadataQuery
Create a search using SQL-like syntax to return items that match specific metadata
Fields
- queryParams? record {} - Set of arguments corresponding to the parameters specified in the
query. The type of each parameter used in thequery_paramsmust match the type of the corresponding metadata template field
- marker? string - Marker to use for requesting the next page
- query? string - The query to perform. A query is a logical expression that is very similar
to a SQL
SELECTstatement. Values in the search query can be turned into parameters specified in thequery_paramarguments list to prevent having to manually insert search values into the query string. For example, a value of:amountwould represent theamountvalue inquery_paramsobject
- 'limit int(default 100) - A value between 0 and 100 that indicates the maximum number of results to return for a single request. This only specifies a maximum boundary and will not guarantee the minimum number of results returned
- orderBy? MetadataQueryOrderBy[] - A list of template fields and directions to sort the metadata query
results by.
The ordering
directionmust be the same for each item in the array
- 'from string - Specifies the template used in the query. Must be in the form
scope.templateKey. Not all templates can be used in this field, most notably the built-in, Box-provided classification templates can not be used in a query
- fields? string[] - By default, this endpoint returns only the most basic info about the items for
which the query matches. This attribute can be used to specify a list of
additional attributes to return for any item, including its metadata.
This attribute takes a list of item fields, metadata template identifiers,
or metadata template field identifiers.
For example:
created_bywill add the details of the user who created the item to the response.metadata.<scope>.<templateKey>will return the mini-representation of the metadata instance identified by thescopeandtemplateKey.metadata.<scope>.<templateKey>.<field>will return all the mini-representation of the metadata instance identified by thescopeandtemplateKeyplus the field specified by thefieldname. Multiple fields for the samescopeandtemplateKeycan be defined
- ancestorFolderId string - The ID of the folder that you are restricting the query to. A value of zero will return results from all folders you have access to. A non-zero value will only return results found in the folder corresponding to the ID or in any of its subfolders
box: MetadataQueryOrderBy
An object representing one of the metadata template fields to sort the metadata query results by
Fields
- fieldKey? string - The metadata template field to order by.
The
field_keyrepresents thekeyvalue of a field from the metadata template being searched for
- direction? "ASC"|"DESC"|"asc"|"desc" - The direction to order by, either ascending or descending.
The
orderingdirection must be the same for each item in the array
box: MetadataQueryResults
A page of files and folders that matched the metadata query
Fields
- nextMarker? string - The marker for the start of the next page of results
- entries? MetadataQueryResultItem[] - The mini representation of the files and folders that match the search
terms.
By default, this endpoint returns only the most basic info about the
items. To get additional fields for each item, including any of the
metadata, use the
fieldsattribute in the query
- 'limit int(default 100) - The limit that was used for this search. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed
box: Metadatas
A list of metadata instances that have been applied to a file or folder
Fields
- entries? Metadata[] - A list of metadata instances, as applied to this file or folder
- 'limit? int - The limit that was used for this page of results
box: MetadataTaxonomies
A list of metadata taxonomies
Fields
- Fields Included from *MetadataTaxonomiesPart1
- Fields Included from *MetadataTaxonomiesPart12
- entries MetadataTaxonomy[]
- anydata...
box: MetadataTaxonomiesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: MetadataTaxonomiesPart12
Fields
- entries? MetadataTaxonomy[] - A list of metadata taxonomies.
box: MetadataTaxonomy
A taxonomy object for metadata that can be used in metadata templates
Fields
- displayName string - The display name of the metadata taxonomy. This can be seen in the Box web app
- namespace string - A namespace that the metadata taxonomy is associated with
- id string - A unique identifier of the metadata taxonomy
- 'key? string - A unique identifier of the metadata taxonomy. The identifier must be unique within the namespace to which it belongs
- levels? MetadataTaxonomyLevel[] - Levels of the metadata taxonomy
box: MetadataTaxonomyAncestor
A node object in the metadata taxonomy that represents an ancestor
Fields
- level? int - An index of the level to which the node belongs
- displayName? string - The display name of the metadata taxonomy node
- id? string - A unique identifier of the metadata taxonomy node
box: MetadataTaxonomyLevel
A level in the metadata taxonomy represents a hierarchical category within the taxonomy structure
Fields
- level? Signed32 - An index of the level within the taxonomy. Levels are indexed starting from 1
- displayName? string - The display name of the level as it is shown to the user
- description? string - A description of the level
box: MetadataTaxonomyLevels
Levels in the metadata taxonomy represent hierarchical categories within the taxonomy structure
Fields
- entries? MetadataTaxonomyLevel[] - An array of all taxonomy levels.
box: MetadataTaxonomyNode
A node object for metadata taxonomy that can be used in metadata templates
Fields
- level int - An index of the level to which the node belongs
- displayName string - The display name of the metadata taxonomy node
- nodePath? string[] - An array of identifiers for all ancestor nodes.
Not returned for root-level nodes
- id string - A unique identifier of the metadata taxonomy node
- ancestors? MetadataTaxonomyAncestor[] - An array of objects for all ancestor nodes.
Not returned for root-level nodes
- parentId? string - The identifier of the parent node
box: MetadataTaxonomyNodes
A list of metadata taxonomy nodes
Fields
- Fields Included from *MetadataTaxonomyNodesPart1
- Fields Included from *MetadataTaxonomyNodesPart12
- entries MetadataTaxonomyNode[]
- anydata...
box: MetadataTaxonomyNodesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: MetadataTaxonomyNodesPart12
Fields
- entries? MetadataTaxonomyNode[] - A list of metadata taxonomy nodes.
box: MetadataTemplate
A template for metadata that can be applied to files and folders
Fields
- copyInstanceOnItemCopy? boolean - Whether or not to include the metadata when a file or folder is copied
- hidden? boolean - Defines if this template is visible in the Box web app UI, or if it is purely intended for usage through the API
- displayName? string - The display name of the template. This can be seen in the Box web app and mobile apps
- scope? string - The scope of the metadata template can either be
globalorenterprise_*. Theglobalscope is used for templates that are available to any Box enterprise. Theenterprise_*scope represents templates that have been created within a specific enterprise, where*will be the ID of that enterprise
- id string - The ID of the metadata template
- 'type "metadata_template" - The value will always be
metadata_template
- fields? MetadataTemplateFields[] - An ordered list of template fields which are part of the template. Each field can be a regular text field, date field, number field, as well as a single or multi-select list
- templateKey? string - A unique identifier for the template. This identifier is unique across
the
scopeof the enterprise to which the metadata template is being applied, yet is not necessarily unique across different enterprises
box: MetadataTemplateFields
A field within a metadata template. Fields can be a basic text, date, or number field, or a list of options
Fields
- Fields Included from *MetadataFieldRead
- hidden boolean
- taxonomyKey string
- displayName string
- taxonomyId string
- options MetadataOptionWrite[]
- namespace string
- description string
- type "string"|"float"|"date"|"enum"|"multiSelect"|"taxonomy"|"integer"
- optionsRules MetadataTemplateOptionsRules
- key string
- anydata...
- Fields Included from *MetadataFieldReadVariant2
- id string
- anydata...
box: MetadataTemplateOptionsRules
An object defining additional rules for the options of the taxonomy field.
This property is required when the field type is set to taxonomy
Fields
- selectableLevels? int[] - An array of integers defining which levels of the taxonomy are selectable by users
- multiSelect? boolean - Whether to allow users to select multiple values
box: MetadataTemplates
A list of metadata templates
Fields
- Fields Included from *MetadataTemplatesPart1
- Fields Included from *MetadataTemplatesPart12
- entries MetadataTemplate[]
- anydata...
box: MetadataTemplatesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: MetadataTemplatesPart12
Fields
- entries? MetadataTemplate[] - A list of metadata templates.
box: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://api.box.com/oauth2/token") - Refresh URL
box: Outcome
An instance of an outcome
Fields
- role? RoleVariable -
- taskCollaborators? CollaboratorVariable -
- collaborators? CollaboratorVariable -
- id string - ID of a specific outcome
- fileCollaboratorRole? RoleVariable -
- completionRule? CompletionRuleVariable -
box: PostOAuth2Revoke
A request to revoke an OAuth 2.0 token
Fields
- clientSecret? string - The client secret of the application requesting to revoke an access token
- clientId? string - The Client ID of the application requesting to revoke the access token
- token? string - The access token to revoke
box: PostOAuth2Token
A request for a new OAuth 2.0 token
Fields
- subjectTokenType? "urn:ietf:params:oauth:token-type:access_token" - The type of
subject_tokenpassed in. Used in combination withurn:ietf:params:oauth:grant-type:token-exchangeas 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_codeas thegrant_type
- actorToken? 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-exchangeas thegrant_type
- 'resource? string - Full URL for the file that the token should be generated for
- boxSubjectId? string - Used in combination with
client_credentialsas thegrant_type. Value is determined bybox_subject_type. Ifuseruse user ID and ifenterpriseuse enterprise ID
- clientId? 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-beareras thegrant_type
- boxSharedLink? string - Full URL of the shared link on the file or folder that the token should be generated for
- refreshToken? string - A refresh token used to get a new access token with.
Used in combination with
refresh_tokenas thegrant_type
- grantType "authorization_code"|"refresh_token"|"client_credentials"|"urn:ietf:params:oauth:grant-type:jwt-bearer"|"urn:ietf:params:oauth:grant-type:token-exchange" - 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
- scope? string - The space-delimited list of scopes that you want apply to the
new access token.
The
subject_tokenwill need to have all of these scopes or the call will error with 401 Unauthorized.
- boxSubjectType? "enterprise"|"user" - Used in combination with
client_credentialsas 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-beareras thegrant_type
- clientSecret? 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-beareras thegrant_type
- subjectToken? 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-exchangeas thegrant_type
- actorTokenType? "urn:ietf:params:oauth:token-type:id_token" - The type of
actor_tokenpassed in. Used in combination withurn:ietf:params:oauth:grant-type:token-exchangeas thegrant_type
box: PostOAuth2TokenRefreshAccessToken
A request to refresh an Access Token. Use this API to refresh an expired Access Token using a valid Refresh Token
Fields
- refreshToken string - The refresh token to refresh
- grantType "refresh_token" - The type of request being made, in this case a refresh request
- clientSecret string - The client secret of the application requesting to refresh the token
- clientId string - The client ID of the application requesting to refresh the token
box: PromoteFileVersionQueries
Represents the Queries record for the operation: promoteFileVersion
Fields
- fields? string[] - 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
box: PromoteFileVersionRequest
The file version to promote
Fields
- id? string - The file version ID
- 'type? "file_version" - The type to promote
box: RealtimeServer
A real-time server that can be used for long polling user events
Fields
- retryTimeout? 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
- maxRetries? string - The maximum number of retries this server will allow before a new long poll should be started by getting a new list of server
- 'type? string - The value will always be
realtime_server
- ttl? string - The time in minutes for which this server is available
- url? string - The URL for the server
box: RealtimeServers
A list of real-time servers that can be used for long-polling
Fields
- chunkSize? int - The number of items in this response
- entries? RealtimeServer[] - A list of real-time servers
box: RecentItem
A recent item accessed by a user
Fields
- interactionSharedLink? string - If the item was accessed through a shared link it will appear here, otherwise this will be null
- item? RecentItemResource -
- interactionType? "item_preview"|"item_upload"|"item_comment"|"item_open"|"item_modify" - The most recent type of access the user performed on the item
- 'type? string - The value will always be
recent_item
- interactedAt? string - The time of the most recent interaction
box: RecentItems
A list of recent items
Fields
- Fields Included from *RecentItemsPart1
- Fields Included from *RecentItemsPart12
- entries RecentItem[]
- anydata...
box: RecentItemsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: RecentItemsPart12
Fields
- entries? RecentItem[] - A list of recent items.
box: Reference
The bare basic reference for an object
Fields
- id? string - The unique identifier for this object
- 'type? string - The type for this object
box: RemoveFileVersionHeaders
Represents the Headers record for the operation: removeFileVersion
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: RemoveSharedLinkFromFileQueries
Represents the Queries record for the operation: removeSharedLinkFromFile
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: RemoveSharedLinkFromFileRequest
Fields
- sharedLink? record {}? - By setting this value to
null, the shared link is removed from the file
box: RemoveSharedLinkFromFolderQueries
Represents the Queries record for the operation: removeSharedLinkFromFolder
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: RemoveSharedLinkFromFolderRequest
Fields
- sharedLink? record {}? - By setting this value to
null, the shared link is removed from the folder
box: RemoveSharedLinkFromWebLinkQueries
Represents the Queries record for the operation: removeSharedLinkFromWebLink
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: RemoveSharedLinkFromWebLinkRequest
Fields
- sharedLink? record {}? - By setting this value to
null, the shared link is removed from the web link
box: ResourceScope
A relation between a resource (file or folder) and the scopes for which the resource can be accessed
Fields
- scope? "annotation_edit"|"annotation_view_all"|"annotation_view_self"|"base_explorer"|"base_picker"|"base_preview"|"base_upload"|"item_delete"|"item_download"|"item_preview"|"item_rename"|"item_share"|"item_upload"|"item_read" - The scopes for the resource access
- 'object? Resource - The file or folder resource
box: RestoreFileQueries
Represents the Queries record for the operation: restoreFile
Fields
- fields? string[] - 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
box: RestoreFileRequest
Fields
- parent? record { id string } -
- name? string - An optional new name for the file
box: RestoreFileVersionRequest
The file version to be restored
Fields
- trashedAt? string? - Set this to
nullto clear the date and restore the file
box: RestoreFolderQueries
Represents the Queries record for the operation: restoreFolder
Fields
- fields? string[] - 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
box: RestoreFolderRequest
Fields
- parent? record { id string } -
- name? string - An optional new name for the folder
box: RestoreWebLinkQueries
Represents the Queries record for the operation: restoreWebLink
Fields
- fields? string[] - 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
box: RestoreWebLinkRequest
Fields
- parent? record { id string } -
- name? string - An optional new name for the web link
box: RetentionPolicies
A list of retention policies
Fields
- Fields Included from *RetentionPoliciesPart1
- entries RetentionPolicy[]
- anydata...
- Fields Included from *RetentionPoliciesPart12
box: RetentionPoliciesPart1
Fields
- entries? RetentionPolicy[] - A list in which each entry represents a retention policy object.
box: RetentionPoliciesPart12
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: 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, metadata templates, 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
- retentionLength string
- dispositionAction "permanently_delete"|"remove_retention"
- maxExtensionLength RetentionPolicyMaxExtensionLengthResponse
- policyName string
- id string
- type "retention_policy"
- anydata...
- policyType? "finite"|"indefinite" - 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.
- assignment_counts? RetentionPolicy_assignment_counts - Counts the retention policy assignments for each item type.
- description? string - The additional text description of the retention policy.
- createdAt? string - When the retention policy object was created.
- customNotificationRecipients? UserMini[] - A list of users notified when the retention policy duration is about to end.
- modifiedAt? string - When the retention policy object was last modified.
- canOwnerExtendRetention? boolean - Determines if the owner of items under the policy can extend the retention when the original retention duration is about to end.
- createdBy? UserMini -
- retentionType? "modifiable"|"non_modifiable" - Specifies the retention type:
-
modifiable: You can modify the retention policy. For example, you can add or remove folders, shorten or lengthen the policy duration, or delete the assignment. Use this type if your retention policy is not related to any regulatory purposes. -
non-modifiable: You can modify the retention policy only in a limited way: add a folder, lengthen the duration, retire the policy, change the disposition action or notification settings. You cannot perform other actions, such as deleting the assignment or shortening the policy duration. Use this type to ensure compliance with regulatory retention policies.
-
- status? "active"|"retired" - The status of the retention policy. The status of
a policy will be
active, unless explicitly retired by an administrator, in which case the status will beretired. Once a policy has been retired, it cannot become active again.
- areOwnersNotified? boolean - Determines if owners and co-owners of items under the policy are notified when the retention duration is about to end.
box: RetentionPolicy_assignment_counts
Counts the retention policy assignments for each item type.
Fields
- metadataTemplate? int - The number of metadata template assignments this policy has.
- folder? int - The number of folder assignments this policy has.
- enterprise? int - The number of enterprise assignments this policy has. The maximum value is 1.
box: RetentionPolicyAssignment
A retention assignment represents a rule specifying the files a retention policy retains. Assignments can retain files based on their folder or metadata, or hold all files in the enterprise
Fields
- retentionPolicy? RetentionPolicyMini -
- assignedAt? string - When the retention policy assignment object was created
- id string - The unique identifier for a retention policy assignment
- assignedBy? UserMini -
- 'type "retention_policy_assignment" - The value will always be
retention_policy_assignment
- assignedTo? RetentionPolicyAssignmentAssignedTo -
- filterFields? RetentionPolicyAssignmentFilterFields[]? - An array of field objects. Values are only returned if the
assigned_totype ismetadata_template. Otherwise, the array is blank
- startDateField? string - The date the retention policy assignment begins.
If the
assigned_totype ismetadata_template, this field can be a date field's metadata attribute key id
box: RetentionPolicyAssignmentAssignedTo
The type and id of the content that is under
retention. The type can either be folder
enterprise, or metadata_template
Fields
- id? string? - The ID of the folder, enterprise, or metadata template the policy is assigned to. Set to null or omit when type is set to enterprise
- 'type? "folder"|"enterprise"|"metadata_template" - The type of resource the policy is assigned to
box: RetentionPolicyAssignmentFilterFields
Fields
- 'field? string? - The metadata attribute key id
- value? string? - The metadata attribute field id. For value, only enum and multiselect types are supported
box: RetentionPolicyAssignments
A list of retention policy assignments
Fields
- Fields Included from *RetentionPolicyAssignmentsPart1
- entries RetentionPolicyAssignment[]
- anydata...
- Fields Included from *RetentionPolicyAssignmentsPart12
box: RetentionPolicyAssignmentsAssignTo
The item to assign the policy to
Fields
- id? string? - The ID of item to assign the policy to.
Set to
nullor omit whentypeis set toenterprise
- 'type "enterprise"|"folder"|"metadata_template" - The type of item to assign the policy to
box: RetentionPolicyAssignmentsFilterFields
Fields
- 'field? string - The metadata attribute key id
- value? string - The metadata attribute field id. For value, only enum and multiselect types are supported
box: RetentionPolicyAssignmentsPart1
Fields
- entries? RetentionPolicyAssignment[] - A list of retention policy assignments.
box: RetentionPolicyAssignmentsPart12
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: RetentionPolicyBase
A base representation of a retention policy
Fields
- id string - The unique identifier that represents a retention policy
- 'type "retention_policy" - The value will always be
retention_policy
box: RetentionPolicyMini
A mini representation of a retention policy, used when nested within another resource
Fields
- Fields Included from *RetentionPolicyBase
- id string
- type "retention_policy"
- anydata...
- retentionLength? string - The length of the retention policy. This value
specifies the duration in days that the retention
policy will be active for after being assigned to
content. If the policy has a
policy_typeofindefinite, theretention_lengthwill also beindefinite.
- dispositionAction? "permanently_delete"|"remove_retention" - 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.
- maxExtensionLength? RetentionPolicyMaxExtensionLengthResponse -
- policyName? string - The name given to the retention policy.
box: RoleVariable
Determines if the workflow outcome affects a specific collaborator role
Fields
- variableValue "editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner" -
- variableType "collaborator_role" - The variable type used by the object
- 'type "variable" - Role object type
box: SearchForContentQueries
Represents the Queries record for the operation: searchForContent
Fields
- createdAtRange? string[] - Limits the search results to any items created within
a given date range.
Date ranges are defined as comma separated RFC3339
timestamps.
If the start date is omitted (
,2014-05-17T13:35:01-07:00) anything created before the end date will be returned. If the end date is omitted (2014-05-15T13:35:01-07:00,) the current date will be used as the end date instead
- updatedAtRange? string[] - Limits the search results to any items updated within
a given date range.
Date ranges are defined as comma separated RFC3339
timestamps.
If the start date is omitted (
,2014-05-17T13:35:01-07:00) anything updated before the end date will be returned. If the end date is omitted (2014-05-15T13:35:01-07:00,) the current date will be used as the end date instead
- recentUpdaterUserIds? string[] - Limits the search results to any items that have been updated by the given list of users, defined as a list of comma separated user IDs. The items still need to be owned or shared with the currently authenticated user for them to show up in the search results. If the user does not have access to any files owned by any of the users an empty result set will be returned. This feature only searches back to the last 10 versions of an item
- offset int(default 0) - The offset of the item at which to begin the response. Queries with offset parameter value exceeding 10000 will be rejected with a 400 response
- deletedAtRange? string[] - Limits the search results to any items deleted within a given
date range.
Date ranges are defined as comma separated RFC3339 timestamps.
If the start date is omitted (
2014-05-17T13:35:01-07:00), anything deleted before the end date will be returned. If the end date is omitted (2014-05-15T13:35:01-07:00), the current date will be used as the end date instead. Thetrash_contentparameter needs to be set totrashed_only. If searching in trash is not performed, then an empty result is returned. Data available from 2023-02-01 onwards
- trashContent "non_trashed_only"|"trashed_only"|"all_items" (default "non_trashed_only") - Determines if the search should look in the trash for items.
By default, this API only returns search results for items
not currently in the trash (
non_trashed_only).trashed_only- Only searches for items currently in the trashnon_trashed_only- Only searches for items currently not in the trashall_items- Searches for both trashed and non-trashed items
- query? string - The string to search for. This query is matched against item names,
descriptions, text content of files, and various other fields of
the different item types.
This parameter supports a variety of operators to further refine
the results returns.
""- by wrapping a query in double quotes only exact matches are returned by the API. Exact searches do not return search matches based on specific character sequences. Instead, they return matches based on phrases, that is, word sequences. For example: A search for"Blue-Box"may return search results including the sequence"blue.box","Blue Box", and"Blue-Box"; any item containing the wordsBlueandBoxconsecutively, in the order specified.AND- returns items that contain both the search terms. For example, a search formarketing AND BoxWorksreturns items that have bothmarketingandBoxWorkswithin its text in any order. It does not return a result that only hasBoxWorksin its text.OR- returns items that contain either of the search terms. For example, a search formarketing OR BoxWorksreturns a result that has eithermarketingorBoxWorkswithin its text. Using this operator is not necessary as we implicitly interpret multi-word queries asORunless another supported boolean term is used.NOT- returns items that do not contain the search term provided. For example, a search formarketing AND NOT BoxWorksreturns a result that has onlymarketingwithin its text. Results containingBoxWorksare omitted.
and,or, andnot) or mixed case (that is,And,Or, andNot) operators. This field is required unless themdfiltersparameter is defined
- sort "modified_at"|"relevance" (default "relevance") - Defines the order in which search results are returned. This API
defaults to returning items by relevance unless this parameter is
explicitly specified.
relevance(default) returns the results sorted by relevance to the query search term. The relevance is based on the occurrence of the search term in the items name, description, content, and additional properties.modified_atreturns the results ordered in descending order by date at which the item was last modified
- ancestorFolderIds? string[] - Limits the search results to items within the given
list of folders, defined as a comma separated lists
of folder IDs.
Search results will also include items within any subfolders
of those ancestor folders.
The folders still need to be owned or shared with
the currently authenticated user. If the folder is not accessible by this
user, or it does not exist, a
HTTP 404error code will be returned instead. To search across an entire enterprise, we recommend using theenterprise_contentscope parameter which can be requested with our support team
- 'type? "file"|"folder"|"web_link" - Limits the search results to any items of this type. This
parameter only takes one value. By default the API returns
items that match any of these types.
file- Limits the search results to files,folder- Limits the search results to folders,web_link- Limits the search results to web links, also known as bookmarks
- mdfilters? MetadataFilter[] - Limits the search results to any items for which the metadata matches the provided filter.
This parameter is a list that specifies exactly one metadata template used to filter the search results.
The parameter is required unless the
queryparameter is provided
- includeRecentSharedLinks boolean(default false) - Defines whether the search results should include any items that the user recently accessed through a shared link. When this parameter has been set to true, the format of the response of this API changes to return a list of Search Results with Shared Links
- ownerUserIds? string[] - Limits the search results to any items that are owned
by the given list of owners, defined as a list of comma separated
user IDs.
The items still need to be owned or shared with
the currently authenticated user for them to show up in the search
results. If the user does not have access to any files owned by any of
the users an empty result set will be returned.
To search across an entire enterprise, we recommend using the
enterprise_contentscope parameter which can be requested with our support team
- fileExtensions? string[] - Limits the search results to any files that match any of the provided file extensions. This list is a comma-separated list of file extensions without the dots
- deletedUserIds? string[] - Limits the search results to items that were deleted by the given
list of users, defined as a list of comma separated user IDs.
The
trash_contentparameter needs to be set totrashed_only. If searching in trash is not performed, an empty result set is returned. The items need to be owned or shared with the currently authenticated user for them to show up in the search results. If the user does not have access to any files owned by any of the users, an empty result set is returned. Data available from 2023-02-01 onwards
- scope "user_content"|"enterprise_content" (default "user_content") - Limits the search results to either the files that the user has
access to, or to files available to the entire enterprise.
The scope defaults to
user_content, which limits the search results to content that is available to the currently authenticated user. Theenterprise_contentcan be requested by an admin through our support channels. Once this scope has been enabled for a user, it will allow that use to query for content across the entire enterprise and not only the content that they have access to
- 'limit int(default 30) - Defines the maximum number of items to return as part of a page of results
- contentTypes? ("name"|"description"|"file_content"|"comments"|"tags")[] - Limits the search results to any items that match the search query
for a specific part of the file, for example the file description.
Content types are defined as a comma separated lists
of Box recognized content types. The allowed content types are as follows.
name- The name of the item, as defined by itsnamefield.description- The description of the item, as defined by itsdescriptionfield.file_content- The actual content of the file.comments- The content of any of the comments on a file or folder.tags- Any tags that are applied to an item, as defined by itstagsfield
- sizeRange? int[] - Limits the search results to any items with a size within a given file size range. This applied to files and folders. Size ranges are defined as comma separated list of a lower and upper byte size limit (inclusive). The upper and lower bound can be omitted to create open ranges
- fields? string[] - 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
- direction "DESC"|"ASC" (default "DESC") - Defines the direction in which search results are ordered. This API
defaults to returning items in descending (
DESC) order unless this parameter is explicitly specified. When results are sorted byrelevancethe ordering is locked to returning items in descending order of relevance, and this parameter is ignored
box: SearchResults
A list of files, folders and web links that matched the search query
Fields
- Fields Included from *SearchResultsPart1
- Fields Included from *SearchResultsPart12
- type "search_results_items"
- entries SearchResultItem[]
- anydata...
- 'type "search_results_items" -
box: SearchResultsPart1
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter used
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed
box: SearchResultsPart12
Fields
- 'type? "search_results_items" - Specifies the response as search result items without shared links.
- entries? SearchResultItem[] - The search results for the query provided.
box: 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
- Fields Included from *SearchResultsWithSharedLinksPart1
- Fields Included from *SearchResultsWithSharedLinksPart12
- type "search_results_with_shared_links"
- entries SearchResultWithSharedLink[]
- anydata...
- 'type "search_results_with_shared_links" -
box: SearchResultsWithSharedLinksPart1
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter used
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed
box: SearchResultsWithSharedLinksPart12
Fields
- 'type? "search_results_with_shared_links" - Specifies the response as search result items with shared links.
- entries? SearchResultWithSharedLink[] - The search results for the query provided, including the additional information about any shared links through which the item has been shared with the user.
box: 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
- item? SearchResultWithSharedLinkItem -
- accessibleViaSharedLink? 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
box: SessionTerminationMessage
A message informing about the termination job status
Fields
- message? string - The unique identifier for the termination job status
box: ShieldBarrierMemberSegment
The type and id of the
requested shield information barrier segment
Fields
- id? string - The ID reference of the requesting shield information barrier segment
- 'type? "shield_information_barrier_segment" - The type of the shield barrier segment for this member
box: ShieldBarrierReportDetail
Fields
- folderId? string - Folder ID for locating this report
box: ShieldBarrierRestrictedSegment
The type and id of the restricted
shield information barrier segment
Fields
- id? string - The ID reference of the restricted shield information barrier segment
- 'type? "shield_information_barrier_segment" - The type of the restricted shield information barrier segment
box: ShieldBarrierRestrictionSegment
The type and id of the requested
shield information barrier segment
Fields
- id? string - The ID reference of the requesting shield information barrier segment
- 'type? "shield_information_barrier_segment" - The type of the shield barrier segment for this member
box: ShieldInformationBarrier
A standard representation of a shield information barrier object
Fields
- updatedAt? string - ISO date time string when this shield information barrier was updated
- enterprise? EnterpriseBase - The
typeandidof enterprise this barrier is under
- updatedBy? UserBase - The user that updated this shield information barrier
- createdAt? string - ISO date time string when this shield information barrier object was created
- enabledBy? UserBase -
- id? string - The unique identifier for the shield information barrier
- 'type? "shield_information_barrier" - The type of the shield information barrier
- createdBy? UserBase - The user who created this shield information barrier
- enabledAt? string - ISO date time string when this shield information barrier was enabled
- status? "draft"|"pending"|"disabled"|"enabled"|"invalid" - Status of the shield information barrier
box: ShieldInformationBarrierBase
A base representation of a shield information barrier object
Fields
- id? string - The unique identifier for the shield information barrier
- 'type? "shield_information_barrier" - The type of the shield information barrier
box: ShieldInformationBarrierReference
A shield information barrier reference for requests and responses
Fields
- shieldInformationBarrier? ShieldInformationBarrierBase -
box: ShieldInformationBarrierReport
A standard representation of a shield information barrier report object
Fields
- Fields Included from *ShieldInformationBarrierReportBase
- id string
- type "shield_information_barrier_report"
- anydata...
- updatedAt? string - ISO date time string when this shield information barrier report was updated.
- shieldInformationBarrier? ShieldInformationBarrierReference -
- createdAt? string - ISO date time string when this shield information barrier report object was created.
- details? ShieldInformationBarrierReportDetails -
- createdBy? UserBase -
- status? "pending"|"error"|"done"|"cancelled" - Status of the shield information report.
box: ShieldInformationBarrierReportBase
A base representation of a shield information barrier report object
Fields
- id? string - The unique identifier for the shield information barrier report
- 'type? "shield_information_barrier_report" - The type of the shield information barrier report
box: ShieldInformationBarrierReportDetails
Indicates which folder the report file is located and any errors when generating the report
Fields
- details? ShieldBarrierReportDetail -
box: ShieldInformationBarrierReports
A list of shield barrier reports
Fields
- Fields Included from *ShieldInformationBarrierReportsPart1
- Fields Included from *ShieldInformationBarrierReportsPart12
- entries ShieldInformationBarrierReport[]
- anydata...
box: ShieldInformationBarrierReportsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: ShieldInformationBarrierReportsPart12
Fields
- entries? ShieldInformationBarrierReport[] - A list of shield information barrier reports.
box: ShieldInformationBarriers
List of Shield Information Barrier objects
Fields
- Fields Included from *ShieldInformationBarriersPart1
- Fields Included from *ShieldInformationBarriersPart12
- entries ShieldInformationBarrier[]
- anydata...
box: ShieldInformationBarrierSegment
A shield information barrier segment object
Fields
- updatedAt? string - ISO date time string when this shield information barrier segment was updated
- shieldInformationBarrier? ShieldInformationBarrierBase -
- name? string - Name of the shield information barrier segment
- updatedBy? UserBase -
- description? string - Description of the shield information barrier segment
- createdAt? string - ISO date time string when this shield information barrier object was created
- id? string - The unique identifier for the shield information barrier segment
- 'type? "shield_information_barrier_segment" - The type of the shield information barrier segment
- createdBy? UserBase -
box: ShieldInformationBarrierSegmentMember
A standard representation of a shield information barrier segment member object
Fields
- Fields Included from *ShieldInformationBarrierSegmentMemberMini
- updatedAt? string - ISO date time string when this shield information barrier segment Member was updated.
- shieldInformationBarrier? ShieldInformationBarrierBase -
- updatedBy? UserBase -
- shield_information_barrier_segment? ShieldInformationBarrierSegmentMember_shield_information_barrier_segment - The
typeandidof the requested shield information barrier segment.
- createdAt? string - ISO date time string when this shield information barrier object was created.
- user? UserBase -
- createdBy? UserBase -
box: ShieldInformationBarrierSegmentMember_shield_information_barrier_segment
The type and id of the requested
shield information barrier segment.
Fields
- id? string - The ID reference of the requesting shield information barrier segment.
- 'type? "shield_information_barrier_segment" - The type of the shield information barrier segment.
box: ShieldInformationBarrierSegmentMemberBase
A base representation of a shield information barrier segment member object
Fields
- id? string - The unique identifier for the shield information barrier segment member
- 'type? "shield_information_barrier_segment_member" - The type of the shield information barrier segment member
box: ShieldInformationBarrierSegmentMemberMini
A mini representation of a shield information barrier segment member object
Fields
- Fields Included from *ShieldInformationBarrierSegmentMemberBase
- id string
- type "shield_information_barrier_segment_member"
- anydata...
- user? UserBase -
box: ShieldInformationBarrierSegmentMembers
List of Shield Information Barrier Member objects
Fields
- Fields Included from *ShieldInformationBarrierSegmentMembersPart1
- Fields Included from *ShieldInformationBarrierSegmentMembersPart12
- entries ShieldInformationBarrierSegmentMember[]
- anydata...
box: ShieldInformationBarrierSegmentMembersPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: ShieldInformationBarrierSegmentMembersPart12
Fields
- entries? ShieldInformationBarrierSegmentMember[] - A list of shield information barrier segment members.
box: ShieldInformationBarrierSegmentRestriction
A standard representation of a segment restriction of a shield information barrier object
Fields
- Fields Included from *ShieldInformationBarrierSegmentRestrictionMini
- restricted_segment ShieldInformationBarrierSegmentRestrictionMini_restricted_segment
- shield_information_barrier_segment ShieldInformationBarrierSegmentRestrictionMini_shield_information_barrier_segment
- id string
- type "shield_information_barrier_segment_restriction"
- anydata...
- restricted_segment ShieldInformationBarrierSegmentRestrictionMini_restricted_segment -
- shield_information_barrier_segment ShieldInformationBarrierSegmentRestrictionMini_shield_information_barrier_segment -
- updatedAt? string - ISO date time string when this shield information barrier segment Restriction was updated.
- shieldInformationBarrier? ShieldInformationBarrierBase -
- updatedBy? UserBase -
- createdAt? string - ISO date time string when this shield information barrier Segment Restriction object was created.
- createdBy? UserBase -
box: ShieldInformationBarrierSegmentRestrictionBase
A base representation of a segment restriction object for the shield information barrier
Fields
- id? string - The unique identifier for the shield information barrier segment restriction
- 'type? "shield_information_barrier_segment_restriction" - Shield information barrier segment restriction
box: ShieldInformationBarrierSegmentRestrictionMini
A mini representation of a segment restriction object for the shield information barrier
Fields
- Fields Included from *ShieldInformationBarrierSegmentRestrictionBase
- id string
- type "shield_information_barrier_segment_restriction"
- anydata...
- restricted_segment? ShieldInformationBarrierSegmentRestrictionMini_restricted_segment - The
typeandidof the restricted shield information barrier segment.
- shield_information_barrier_segment? ShieldInformationBarrierSegmentRestrictionMini_shield_information_barrier_segment - The
typeandidof the requested shield information barrier segment.
box: ShieldInformationBarrierSegmentRestrictionMini_restricted_segment
The type and id of the
restricted shield information barrier segment.
Fields
- id? string - The ID reference of the restricted shield information barrier segment.
- 'type? "shield_information_barrier_segment" - The type of the shield information segment.
box: ShieldInformationBarrierSegmentRestrictionMini_shield_information_barrier_segment
The type and id of the
requested shield information barrier segment.
Fields
- id? string - The ID reference of the requesting shield information barrier segment.
- 'type? "shield_information_barrier_segment" - The type of the shield information barrier segment.
box: ShieldInformationBarrierSegmentRestrictions
List of shield information barrier segment restriction objects
Fields
- Fields Included from *ShieldInformationBarrierSegmentRestrictionsPart1
- Fields Included from *ShieldInformationBarrierSegmentRestrictionsPart12
- entries ShieldInformationBarrierSegmentRestriction[]
- anydata...
box: ShieldInformationBarrierSegmentRestrictionsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: ShieldInformationBarrierSegmentRestrictionsPart12
Fields
- entries? ShieldInformationBarrierSegmentRestriction[] - A list of shield information barrier segment restriction objects.
box: ShieldInformationBarrierSegments
List of Shield Information Barrier Segment objects
Fields
- Fields Included from *ShieldInformationBarrierSegmentsPart1
- Fields Included from *ShieldInformationBarrierSegmentsPart12
- entries ShieldInformationBarrierSegment[]
- anydata...
box: ShieldInformationBarrierSegmentsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: ShieldInformationBarrierSegmentsPart12
Fields
- entries? ShieldInformationBarrierSegment[] - A list of shield information barrier segments.
box: ShieldInformationBarriersPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: ShieldInformationBarriersPart12
Fields
- entries? ShieldInformationBarrier[] - A list of shield information barrier objects.
box: SignRequest
A Box Sign request object
Fields
- Fields Included from *SignRequestBase
- externalId string|()
- externalSystemName string|()
- areRemindersEnabled boolean
- isDocumentPreparationNeeded boolean
- emailMessage string|()
- prefillTags SignRequestPrefillTag[]
- daysValid int|()
- requestFlow string|()
- areTextSignaturesEnabled boolean
- name string
- declinedRedirectUrl string|()
- templateId string|()
- emailSubject string|()
- redirectUrl string|()
- anydata...
- finishedAt? string? - Timestamp indicating when all signing actions completed.
- sourceFiles? FileBase[] - List of files to create a signing document from. This is currently limited to ten files. Only the ID and type fields are required for each file.
- createdAt? string - Timestamp marking when the sign request was created.
- signingLog? FileMini? -
- shortId? string - Short identifier for the sign request.
- 'type? "sign-request" - The value will always be
sign-request.
- senderId? int? - The user ID of the sender of the sign request.
- prepareUrl? string? - This URL is returned if
is_document_preparation_neededis set totruein the request. The parameter is used to prepare the signature request using the UI. The signature request is not sent until the preparation phase is complete.
- signers? SignRequestSigner[] - Array of signers for the signature request.
- collaboratorLevel? string? - The collaborator level of the user to the sign request. Values can include "owner", "editor", and "viewer".
- parentFolder? FolderMini -
- signatureColor? string? - Force a specific color for the signature (blue, black, or red).
- sign_files? SignRequest_sign_files - List of files that will be signed, which are copies of the original source files. A new version of these files are created as signers sign and can be downloaded at any point in the signing process.
- errorCode? string? - When the sign request is in an error state, identifies the specific reason. Null when no error code applies.
- id? string - Box Sign request ID.
- autoExpireAt? string? - Uses
days_validto calculate the date and time, in GMT, the sign request will expire if unsigned.
- status? "converting"|"created"|"sent"|"viewed"|"signed"|"cancelled"|"declined"|"error"|"error_converting"|"error_sending"|"expired"|"finalizing"|"error_finalizing" - Describes the status of the signature request.
- senderEmail? string? - The email address of the sender of the sign request.
box: SignRequest_sign_files
List of files that will be signed, which are copies of the original source files. A new version of these files are created as signers sign and can be downloaded at any point in the signing process.
Fields
- isReadyForDownload? boolean - Indicates whether the
sign_filesdocuments are processing and the PDFs may be out of date. A change to any document requires processing on allsign_files. We recommended waiting until processing is finished (and this value is true) before downloading the PDFs.
- files? FileMini[] -
box: SignRequestBase
A standard representation of a signature request object
Fields
- externalId? string? - This can be used to reference an ID in an external system that the sign request is related to
- externalSystemName? string? - Used as an optional system name to appear in the signature log next to the signers who have been assigned the
embed_url_external_id
- areRemindersEnabled? boolean - Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers
- isDocumentPreparationNeeded? boolean - Indicates if the sender should receive a
prepare_urlin the response to complete document preparation using the UI
- emailMessage? string? - Message to include in sign request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including
a,abbr,acronym,b,blockquote,code,em,i,ul,li,ol, andstrong. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used
- prefillTags? SignRequestPrefillTag[] - When a document contains sign-related tags in the content, you can prefill them using this
prefill_tagsby referencing the 'id' of the tag as theexternal_idfield of the prefill tag
- daysValid? int? - Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire
- requestFlow? string? - The flow type of the sign request. Values can include
standardorcfr11. When not specified during creation, a default is chosen based on admin settings
- areTextSignaturesEnabled boolean(default true) - Disables the usage of signatures generated by typing (text)
- name? string - Name of the signature request
- declinedRedirectUrl? string? - The uri that a signer will be redirected to after declining to sign a document
- templateId? string? - When a signature request is created from a template this field will indicate the id of that template
- emailSubject? string? - Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used
- redirectUrl? string? - When specified, the signature request will be redirected to this url when a document is signed
box: SignRequestCancelRequest
Request body for cancelling a sign request
Fields
- reason? string - An optional reason for cancelling the sign request
box: SignRequestCreateRequest
Creates a Box Sign request object
Fields
- Fields Included from *SignRequestBase
- externalId string|()
- externalSystemName string|()
- areRemindersEnabled boolean
- isDocumentPreparationNeeded boolean
- emailMessage string|()
- prefillTags SignRequestPrefillTag[]
- daysValid int|()
- requestFlow string|()
- areTextSignaturesEnabled boolean
- name string
- declinedRedirectUrl string|()
- templateId string|()
- emailSubject string|()
- redirectUrl string|()
- anydata...
- signers SignRequestCreateSigner[] - Array of signers for the signature request. 35 is the max number of signers permitted. Note: It may happen that some signers belong to conflicting segments (user groups). This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts. In such a case, an attempt to send the sign request will result in an error. Read more about segments and ethical walls.
- parentFolder? FolderMini -
- signatureColor? "blue"|"black"|"red"? - Force a specific color for the signature (blue, black, or red).
- sourceFiles? FileBase[]? - List of files to create a signing document from. This is currently limited to ten files. Only the ID and type fields are required for each file.
box: SignRequestCreateSigner
The schema for a Signer object used in for creating a Box Sign request object
Fields
- role "signer"|"approver"|"final_copy_reader" (default "signer") - Defines the role of the signer in the signature request. A
signermust sign the document and anapprovermust approve the document. Afinal_copy_readeronly receives the final signed document and signing log
- signerGroupId? string? - If set, signers who have the same value will be assigned to the same input and to the same signer group. A signer group is not a Box Group. It is an entity that belongs to a Sign Request and can only be used/accessed within this Sign Request. A signer group is expected to have more than one signer. If the provided value is only used for one signer, this value will be ignored and request will be handled as it was intended for an individual signer. The value provided can be any string and only used to determine which signers belongs to same group. A successful response will provide a generated UUID value instead for signers in the same signer group
- embedUrlExternalUserId? string? - User ID for the signer in an external application responsible for authentication when accessing the embed URL
- password? string? - If set, the signer is required to enter the password before they are able to sign a document. This field is write only
- suppressNotifications? boolean? - If true, no emails about the sign request will be sent
- verificationPhoneNumber? string? - If set, this phone number will be used to verify the signer
via two-factor authentication before they are able to sign the document.
Cannot be selected in combination with
login_required
- loginRequired? boolean? - If set to true, the signer will need to log in to a Box account before signing the request. If the signer does not have an existing account, they will have the option to create a free Box account
- isInPerson? boolean - Used in combination with an embed URL for a sender. After the
sender signs, they are redirected to the next
in_personsigner
- declinedRedirectUrl? string? - The URL that a signer will be redirect to after declining to sign a document. Defining this URL overrides default or global declined redirect URL settings for a specific signer
- email? string? - Email address of the signer. The email address of the signer is required when making signature requests, except when using templates that are configured to include emails
- redirectUrl? string? - The URL that a signer will be redirected to after signing a document. Defining this URL overrides default or global redirect URL settings for a specific signer. If no declined redirect URL is specified, this URL will be used for decline actions as well
- 'order? int - Order of the signer
box: SignRequestPrefillTag
Prefill tags are used to prefill placeholders with signer input data. Only one value field can be included
Fields
- textValue? string? - Text prefill value
- dateValue? string? - Date prefill value
- checkboxValue? boolean? - Checkbox prefill value
- documentTagId? string? - This references the ID of a specific tag contained in a file of the signature request
box: SignRequests
A standard representation of a signature request, as returned from any Box Sign API endpoints by default
Fields
- Fields Included from *SignRequestsPart1
- Fields Included from *SignRequestsPart12
- entries SignRequest[]
- anydata...
box: SignRequestSigner
The schema for a Signer object used on the body of a Box Sign request object
Fields
- Fields Included from *SignRequestCreateSigner
- role "signer"|"approver"|"final_copy_reader"
- signerGroupId string|()
- embedUrlExternalUserId string|()
- language string|()
- password string|()
- suppressNotifications boolean|()
- verificationPhoneNumber string|()
- loginRequired boolean|()
- isInPerson boolean
- declinedRedirectUrl string|()
- email string|()
- redirectUrl string|()
- order int
- anydata...
- email string? -
- signer_decision? SignRequestSigner_signer_decision? - Final decision made by the signer.
- embedUrl? string? - URL to direct a signer to for signing.
- attachments? SignRequestSignerAttachment[]? - Attachments that the signer uploaded.
- iframeableEmbedUrl? string? - This URL is specifically designed for
signing documents within an HTML
iframetag. It will be returned in the response only if theembed_url_external_user_idparameter was passed in thecreate Box Sign requestcall.
- inputs? SignRequestSignerInput[] -
- hasViewedDocument? boolean - Set to
trueif the signer views the document.
box: SignRequestSigner_signer_decision
Final decision made by the signer.
Fields
- finalizedAt? string - Date and Time that the decision was made.
- additionalInfo? string? - Additional info about the decision, such as the decline reason from the signer.
- 'type? "signed"|"declined" - Type of decision made by the signer.
box: SignRequestSignerAttachment
Metadata describing a file uploaded by a signer as an attachment
Fields
- name? string? - Display name of the attachment file
- id? string? - Identifier of the attachment file
box: SignRequestSignerInput
Input created by a Signer on a Sign Request
Fields
- Fields Included from *SignRequestPrefillTag
- reason? string? - The reason for the signer's input, applicable to signature or initial content types
in a
cfr11request flow. The value isnullwhen not applicable.
- contentType? "signature"|"initial"|"stamp"|"date"|"checkbox"|"text"|"full_name"|"first_name"|"last_name"|"company"|"title"|"email"|"attachment"|"radio"|"dropdown" - Content type of input.
- readOnly? boolean - Indicates whether this input is read-only (cannot be modified by signers).
- pageIndex int - Index of page that the input is on.
- 'type? "signature"|"date"|"text"|"checkbox"|"radio"|"dropdown" - Type of input.
- isValidated? boolean? - Indicates whether the signer's input has been validated through re-authentication.
Applicable only for signature or initial content types in a
cfr11request flow. The value isnullfor standard request flows or non-applicable input types.
- validation? SignRequestSignerInputValidation|record {||} - Specifies the formatting rules that signers must follow for text field inputs. If set, this validation is mandatory.
box: SignRequestSignerInputCustomValidation
Specifies the custom validation rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType "custom" - Defines the validation format for the text input as custom. A custom regular expression is used for validation
- customRegex string? - Regular expression used for validation
- customErrorMessage string? - Error message shown if input fails custom regular expression validation
box: SignRequestSignerInputDateAsiaValidation
Specifies the date formatting rules used in Asia for a text field input by the signer.
If set, this validation is mandatory.
The date format follows YYYY/MM/DD pattern
Fields
- validationType? "date_asia" - Validates that the text input uses the Asian date format
YYYY/MM/DD
box: SignRequestSignerInputDateEUValidation
Specifies the date formatting rules used in Europe for a text field input by the signer.
If set, this validation is mandatory.
The date format follows DD/MM/YYYY pattern
Fields
- validationType? "date_eu" - Validates that the text input uses the European date format
DD/MM/YYYY
box: SignRequestSignerInputDateISOValidation
Specifies the ISO date formatting rules for a text field input by the signer.
If set, this validation is mandatory.
The date format follows YYYY-MM-DD pattern
Fields
- validationType? "date_iso" - Validates that the text input uses the ISO date format
YYYY-MM-DD
box: SignRequestSignerInputDateUSValidation
Specifies the US date formatting rules for a text field input by the signer.
If set, this validation is mandatory.
The date format follows MM/DD/YYYY pattern
Fields
- validationType? "date_us" - Validates that the text input uses the US date format
MM/DD/YYYY
box: SignRequestSignerInputEmailValidation
Specifies the formatting rules that signers must follow for text field inputs. If set, this validation is mandatory
Fields
- validationType "email" - Validates that the text input is an email address
box: SignRequestSignerInputNumberWithCommaValidation
Specifies the number with comma formatting rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType? "number_with_comma" - Validates that the text input uses a number format with a comma as the decimal separator (for example, 1,23)
box: SignRequestSignerInputNumberWithPeriodValidation
Specifies the number with period formatting rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType? "number_with_period" - Validates that the text input uses a number format with a period as the decimal separator (for example, 1.23)
box: SignRequestSignerInputSSNValidation
Specifies the validation rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType "ssn" - Validates that the text input is a Social Security Number (SSN)
box: SignRequestSignerInputZIP4Validation
Specifies the validation rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType "zip_4" - Validates that the text input is a ZIP+4 code
box: SignRequestSignerInputZIPJPValidation
Specifies the validation rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType "zip_jp" - Validates that the text input is a Japanese ZIP code
box: SignRequestSignerInputZIPValidation
Specifies the validation rules for a text field input by the signer. If set, this validation is mandatory
Fields
- validationType "zip" - Validates that the text input is a ZIP code
box: SignRequestsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
box: SignRequestsPart12
Fields
- entries? SignRequest[] - A list of Box Sign requests.
box: SignTemplate
A Box Sign template object
Fields
- areFieldsLocked? boolean - Indicates if the template input fields are editable or not.
- areFilesLocked? boolean - Indicates if the template files are editable or not. This includes deleting or renaming template files.
- sourceFiles? FileMini[] - List of files to create a signing document from. Only the ID and type fields are required for each file.
- areRecipientsLocked? boolean - Indicates if the template signers are editable or not.
- custom_branding? SignTemplate_custom_branding? - Custom branding applied to notifications and signature requests.
- 'type? "sign-template" - The value will always be
sign-template.
- areOptionsLocked? boolean - Indicates if the template document options are editable or not, for example renaming the document.
- emailMessage? string? - Message to include in signature request email. The field
is cleaned through sanitization of specific characters. However,
some html tags are allowed. Links included in the
message are also converted to hyperlinks in the email. The
message may contain the following html tags including
a,abbr,acronym,b,blockquote,code,em,i,ul,li,ol, andstrong. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used.
- signers? TemplateSigner[] - Array of signers for the template. Note: It may happen that some signers specified in the template belong to conflicting segments (user groups). This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts. In such a case, an attempt to send a sign request based on a template that lists signers in conflicting segments will result in an error. Read more about segments and ethical walls.
- parentFolder? FolderMini -
- additional_info? SignTemplate_additional_info - Additional information on which fields are required and which fields are not editable.
- daysValid? int? - Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire.
- ready_sign_link? SignTemplate_ready_sign_link? - Box's ready-sign link feature enables you to create a link to a signature request that you've created from a template. Use this link when you want to post a signature request on a public form — such as an email, social media post, or web page — without knowing who the signers will be. Note: The ready-sign link feature is limited to Enterprise Plus customers and not available to Box Verified Enterprises.
- requestFlow? string? - The sign flow of sign requests created from the template. Values can include
standardorcfr11.
- name? string? - The name of the template.
- areEmailSettingsLocked? boolean - Indicates if the template email settings are editable or not.
- id? string - Template identifier.
- emailSubject? string? - Subject of signature request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.
box: SignTemplate_additional_info
Additional information on which fields are required and which fields are not editable.
Fields
- nonEditable? ("email_subject"|"email_message"|"name"|"days_valid"|"signers"|"source_files")[] - Non editable fields.
- required? SignTemplate_additional_info_required - Required fields.
box: SignTemplate_additional_info_required
Required fields.
Fields
- signers? ("email")[][] - Required signer fields.
box: SignTemplate_custom_branding
Custom branding applied to notifications and signature requests.
Fields
- brandingColor? string? - Custom branding color in hex.
- logoUri? string? - Custom branding logo URI in the form of a base64 image.
- emailFooterText? string? - Content of the email footer.
- companyName? string? - Name of the company.
box: SignTemplate_ready_sign_link
Box's ready-sign link feature enables you to create a link to a signature request that you've created from a template. Use this link when you want to post a signature request on a public form — such as an email, social media post, or web page — without knowing who the signers will be. Note: The ready-sign link feature is limited to Enterprise Plus customers and not available to Box Verified Enterprises.
Fields
- instructions? string? - Extra instructions for all signers.
- isActive? boolean - Whether the ready sign link is enabled or not.
- name? string? - Request name.
- isNotificationDisabled? boolean - Whether to disable notifications when a signer has signed.
- folderId? string? - The destination folder to place final,
signed document and signing
log. Only
IDandtypefields are required. The root folder, folder ID0, cannot be used.
- url? string - The URL that can be sent to signers.
box: SignTemplates
A list of templates, as returned from any Box Sign API endpoints by default
Fields
- Fields Included from *SignTemplatesPart1
- Fields Included from *SignTemplatesPart12
- entries SignTemplate[]
- anydata...
box: SignTemplatesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: SignTemplatesPart12
Fields
- entries? SignTemplate[] - A list of templates.
box: SkillCardsMetadata
The metadata assigned to a using for Box skills
Fields
- dollarScope? string - An ID for the scope in which this template has been applied
- cards? SkillCard[] - A list of Box Skill cards that have been applied to this file
- dollarTemplate? string - The name of the template
- dollarParent? string - An ID for the parent folder
- dollarVersion? int - The version of the metadata object. Starts at 0 and increases every time a user-defined property is modified
- dollarTypeVersion? int - The last-known version of the template of the object. This is an internal system property and should not be used by a client application
- dollarCanEdit? boolean - Whether the user can edit this metadata
- dollarId? string - A UUID to identify the metadata object
- dollarType? string - A unique identifier for the "type" of this instance. This is an internal system property and should not be used by a client application
box: SkillInvocationFile
The file to assign the cards to
Fields
- id? string - The ID of the file
- 'type? "file" - The value will always be
file
box: SkillInvocationFileVersion
The optional file version to assign the cards to
Fields
- id? string - The ID of the file version
- 'type? "file_version" - The value will always be
file_version
box: SkillInvocationMetadata
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[] - A list of Box Skill cards to apply to this file
box: SkillInvocationUsage
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 - The value will always be
file
- value? decimal - Number of resources affected
box: StartsWorkflowBasedOnRequestBodyRequest
Fields
- folder StartWorkflowFolder - The folder object for which the workflow is configured
- outcomes? Outcome[] - A configurable outcome the workflow should complete
- files StartWorkflowFiles[] - The array of files for which the workflow should start. All files must be in the workflow's configured folder
- 'type? "workflow_parameters" - The type of the parameters object
- flow StartWorkflowFlow - The flow that will be triggered
box: StartWorkflowFiles
A file the workflow should start for
Fields
- id? string - The id of the file
- 'type? "file" - The type of the file object
box: StartWorkflowFlow
The flow that will be triggered
Fields
- id? string - The id of the flow
- 'type? string - The type of the flow object
box: StartWorkflowFolder
The folder object for which the workflow is configured
Fields
- id? string - The id of the folder
- 'type? "folder" - The type of the folder object
box: StatusSkillCard
A Box Skill metadata card that puts a status message in the metadata sidebar
Fields
- skillCardTitle? StatusSkillCardSkillCardTitle -
- invocation KeywordSkillCardInvocation - The invocation of this service, used to track which instance of a service applied the metadata
- skill KeywordSkillCardSkill - The service that applied this metadata
- createdAt? string - The optional date and time this card was created at
- 'type "skill_card" - The value will always be
skill_card
- skillCardType "status" - The value will always be
status
- 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
box: 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
box: 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 "invoked"|"processing"|"success"|"transient_failure"|"permanent_failure" - 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
messagevalue 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
box: StoragePolicies
A list of storage policies
Fields
- Fields Included from *StoragePoliciesPart1
- Fields Included from *StoragePoliciesPart12
- entries StoragePolicy[]
- anydata...
box: StoragePoliciesPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: StoragePoliciesPart12
Fields
- entries? StoragePolicy[] - A list of storage policies.
box: StoragePolicy
The Storage Policy object describes the storage zone
Fields
- Fields Included from *StoragePolicyMini
- id string
- type "storage_policy"
- anydata...
- name? string - A descriptive name of the region.
box: StoragePolicyAssignment
The assignment of a storage policy to a user or enterprise
Fields
- storagePolicy? StoragePolicyMini -
- id string - The unique identifier for a storage policy assignment
- 'type "storage_policy_assignment" - The value will always be
storage_policy_assignment
box: StoragePolicyAssignments
A list of storage policy assignments
Fields
- Fields Included from *StoragePolicyAssignmentsPart1
- Fields Included from *StoragePolicyAssignmentsPart12
- entries StoragePolicyAssignment[]
- anydata...
box: StoragePolicyAssignmentsAssignedTo
The user or enterprise to assign the storage policy to
Fields
- id string - The ID of the user or enterprise
- 'type "user"|"enterprise" - The type to assign the policy to
box: StoragePolicyAssignmentsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: StoragePolicyAssignmentsPart12
Fields
- entries? StoragePolicyAssignment[] - A list of storage policy assignments.
box: StoragePolicyAssignmentsStoragePolicy
The storage policy to assign to the user or enterprise
Fields
- id string - The ID of the storage policy to assign
- 'type "storage_policy" - The type to assign
box: StoragePolicyMini
A mini description of a Storage Policy object
Fields
- id string - The unique identifier for this storage policy
- 'type "storage_policy" - The value will always be
storage_policy
box: 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
- item? FileMini? -
- action? "review"|"complete" - The type of task the task assignee will be prompted to perform
- taskAssignmentCollection? TaskAssignments -
- createdAt? string - When the task object was created
- dueAt? string - When the task is due
- id? string - The unique identifier for this task
- 'type? "task" - The value will always be
task
- message? string - A message that will be included with the task
- isCompleted? boolean - Whether the task has been completed
- createdBy? UserMini -
- completionRule? "all_assignees"|"any_assignee" - Defines which assignees need to complete this task before the task
is considered completed.
all_assigneesrequires all assignees to review or approve the task in order for it to be considered completed.any_assigneeaccepts any one assignee to review or approve the task in order for it to be considered completed
box: TaskAssignment
A task assignment defines which task is assigned to which user to complete
Fields
- resolutionState? "completed"|"incomplete"|"approved"|"rejected" - The current state of the assignment. The available states depend on
the
actionvalue of the task object
- completedAt? string - The date at which this task assignment was
completed. This will be
nullif the task is not completed yet
- item? FileMini? -
- assignedAt? string - The date at which this task was assigned to the user
- id? string - The unique identifier for this task assignment
- assignedBy? UserMini -
- 'type? "task_assignment" - The value will always be
task_assignment
- 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
- remindedAt? string - The date at which the assigned user was reminded of this task assignment
- assignedTo? UserMini -
box: TaskAssignments
A list of task assignments
Fields
- entries? TaskAssignment[] - A list of task assignments
- totalCount? int - The total number of items in this collection
box: 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
loginparameter
- login? string - The email address of the user to assign to the task.
To specify a user by their user ID please use the
idparameter
box: TaskAssignmentsTask
The task to assign to a user
Fields
- id string - The ID of the task
- 'type "task" - The type of the item to assign
box: Tasks
A list of tasks
Fields
- entries? Task[] - A list of tasks
- totalCount? 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
box: TasksItem
The file to attach the task to
Fields
- id? string - The ID of the file
- 'type? "file" - The value will always be
file
box: TemplateSigner
The schema for a Signer for Templates
Fields
- role "signer"|"approver"|"final_copy_reader" (default "signer") - Defines the role of the signer in the signature request. A role of
signerneeds to sign the document, a roleapproverapproves the document and afinal_copy_readerrole only receives the final signed document and signing log
- inputs? TemplateSignerInput[] -
- signerGroupId? string? - If provided, this value points signers that are assigned the same inputs and belongs to same signer group. A signer group is not a Box Group. It is an entity that belongs to the template itself and can only be used within Box Sign requests created from it
- loginRequired? boolean? - If true, the signer is required to login to access the document
- isInPerson? boolean - Used in combination with an embed URL for a sender.
After the sender signs, they will be
redirected to the next
in_personsigner
- label? string? - A placeholder label for the signer set by the template creator to differentiate between signers
- isPasswordRequired? boolean? - If true for signers with a defined email, the password provided when the template was created is used by default. If true for signers without a specified / defined email, the creator needs to provide a password when using the template
- email? string? - Email address of the signer
- 'order? int - Order of the signer
- publicId? string - An identifier for the signer. This can be used to identify a signer within the template
- isPhoneNumberRequired? boolean? - If true for signers with a defined email, the phone number provided when the template was created is used by default. If true for signers without a specified / defined email, the template creator needs to provide a phone number when creating a request
box: TemplateSignerInput
Input created by a Signer on a Template
Fields
- Fields Included from *SignRequestPrefillTag
- dropdownChoices? string[]? - When the input is of the type
dropdownthis values will be filled with all the dropdown options.
- contentType? "signature"|"initial"|"stamp"|"date"|"checkbox"|"text"|"full_name"|"first_name"|"last_name"|"company"|"title"|"email"|"attachment"|"radio"|"dropdown" - Content type of input.
- isRequired? boolean - Whether or not the input is required.
- groupId? string? - When the input is of type
radiothey can be grouped to gather with this identifier.
- readOnly? boolean - Indicates whether this input is read-only (cannot be modified by signers).
- pageIndex int - Index of page that the input is on.
- coordinates? TemplateSignerInput_coordinates - Where the input is located on a page.
- label? string? - The label field is used especially for text, attachment, radio, and checkbox type inputs.
- 'type? "signature"|"date"|"text"|"checkbox"|"attachment"|"radio"|"dropdown" - Type of input.
- documentId? string? - Document identifier.
- validation? SignRequestSignerInputValidation|record {||} - Specifies the formatting rules that signers must follow for text field inputs. If set, this validation is mandatory.
- dimensions? TemplateSignerInput_dimensions - The size of the input.
box: TemplateSignerInput_coordinates
Where the input is located on a page.
Fields
- x? decimal - Relative x coordinate to the page the input is on, ranging from 0 to 1.
- y? decimal - Relative y coordinate to the page the input is on, ranging from 0 to 1.
box: TemplateSignerInput_dimensions
The size of the input.
Fields
- width? decimal - Relative width to the page the input is on, ranging from 0 to 1.
- height? decimal - Relative height to the page the input is on, ranging from 0 to 1.
box: TermsOfService
The root-level record that is supposed to represent a single Terms of Service
Fields
- Fields Included from *TermsOfServiceBase
- id string
- type "terms_of_service"
- anydata...
- createdAt? string - When the legal item was created.
- tosType? "managed"|"external" - Whether to apply these terms to managed users or external users.
- text? string - The text for your terms and conditions. This text could be
empty if the
statusis set todisabled.
- modifiedAt? string - When the legal item was modified.
- status? "enabled"|"disabled" - Whether these terms are enabled or not.
box: TermsOfServiceBase
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 "terms_of_service" - The value will always be
terms_of_service
box: TermsOfServices
A list of terms of services
Fields
- entries? TermsOfService[] - A list of terms of service objects
- totalCount? int - The total number of objects
box: TermsOfServiceUserStatus
The association between a Terms of Service and a user
Fields
- isAccepted? boolean - If the user has accepted the terms of services
- tos? TermsOfServiceBase -
- createdAt? string - When the legal item was created
- id string - The unique identifier for this terms of service user status
- 'type "terms_of_service_user_status" - The value will always be
terms_of_service_user_status
- modifiedAt? string - When the legal item was modified
- user? UserMini -
box: TermsOfServiceUserStatuses
A list of terms of service user statuses
Fields
- entries? TermsOfServiceUserStatus[] - A list of terms of service user statuses
- totalCount? int - The total number of objects
box: TermsOfServiceUserStatusesTos
The terms of service to set the status for
Fields
- id string - The ID of terms of service
- 'type "terms_of_service" - The type of object
box: TermsOfServiceUserStatusesUser
The user to set the status for
Fields
- id string - The ID of user
- 'type "user" - The type of object
box: TimelineSkillCard
A Box Skill metadata card that places a list of images on a timeline
Fields
- duration? int - An total duration in seconds of the timeline
- skillCardTitle? TimelineSkillCardSkillCardTitle -
- invocation KeywordSkillCardInvocation - The invocation of this service, used to track which instance of a service applied the metadata
- entries TimelineSkillCardEntries[] - A list of entries on the timeline
- skill KeywordSkillCardSkill - The service that applied this metadata
- createdAt? string - The optional date and time this card was created at
- 'type "skill_card" - The value will always be
skill_card
- skillCardType "timeline" - The value will always be
timeline
box: 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
box: TimelineSkillCardEntries
An single item that's placed on multiple items on the timeline
Fields
- imageUrl? 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
- appears? TimelineSkillCardAppears[] - Defines a list of timestamps for when this item should appear on the timeline
- 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
box: 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
box: TrackingCode
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
Fields
- name? string - The name of the tracking code, which must be preconfigured in the Admin Console
- 'type? "tracking_code" - The value will always be
tracking_code
- value? string - The value of the tracking code
box: TranscriptSkillCard
A Box Skill metadata card that adds a transcript to a file
Fields
- duration? int - An optional total duration in seconds.
Used with a
skill_card_typeoftranscriptortimeline
- skillCardTitle? TranscriptSkillCardSkillCardTitle -
- invocation TranscriptSkillCardInvocation - The invocation of this service, used to track which instance of a service applied the metadata
- entries TranscriptSkillCardEntries[] - An list of entries for the card. This represents the individual entries of the transcription
- skill TranscriptSkillCardSkill - The service that applied this metadata
- createdAt? string - The optional date and time this card was created at
- 'type "skill_card" - The value will always be
skill_card
- skillCardType "transcript" - The value will always be
transcript
box: TranscriptSkillCardAppears
The timestamp for an entry
Fields
- 'start? int - The time in seconds when an entry should start appearing on a timeline
box: TranscriptSkillCardEntries
An entry in the entries attribute of a metadata card
Fields
- appears? TranscriptSkillCardAppears[] - Defines when a transcribed bit of text appears. This only includes a start time and no end time
- text? string - The text of the entry. This would be the transcribed text assigned to the entry on the timeline
box: TranscriptSkillCardInvocation
The invocation of this service, used to track which instance of a service applied the metadata
Fields
- id string - A custom identifier that represent the instance of
the service that applied this metadata. For example,
if your
image-recognition-serviceruns on multiple nodes, this field can be used to identify the ID of the node that was used to apply the metadata
- 'type "skill_invocation" - The value will always be
skill_invocation
box: TranscriptSkillCardSkill
The service that applied this metadata
Fields
- id string - A custom identifier that represent the service that applied this metadata
- 'type "service" - The value will always be
service
box: TranscriptSkillCardSkillCardTitle
The title of the card
Fields
- code? string - An optional identifier for the title
- message string - The actual title to show in the UI
box: TransferOwnedFoldersOwner
The user who the folder will be transferred to
Fields
- id string - The ID of the user who the folder will be transferred to
box: TransferOwnedFoldersQueries
Represents the Queries record for the operation: transferOwnedFolders
Fields
- fields? string[] - 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 - Determines if users should receive email notification for the action performed
box: TransferOwnedFoldersRequest
Fields
- ownedBy TransferOwnedFoldersOwner -
box: TrashFile
Represents a trashed file
Fields
- fileVersion? FileVersionMini -
- parent? FolderMini -
- description string - The optional description of this file
- createdAt string - The date and time when the file was created on Box
- contentCreatedAt? string? - The date and time at which this file was originally created, which might be before it was uploaded to Box
- ownedBy UserMini -
- 'type "file" - The value will always be
file
- itemStatus "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted
- createdBy? UserMini -
- trashedAt? string? - The time at which this file was put in the trash
- sha1 string - The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a local file
- size int - The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow
- sequenceId string? -
- name? string - The name of the file
- purgedAt? string? - The time at which this file is expected to be purged from the trash
- modifiedBy UserMini -
- sharedLink? string? - The shared link for this file. This will
be
nullif a file has been trashed, since the link will no longer be active
- etag? string? - The HTTP
etagof this file. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the file if (no) changes have happened
- contentModifiedAt? string? - The date and time at which this file was last updated, which might be before it was uploaded to Box
- 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/123thefile_idis123
- modifiedAt string - The date and time when the file was last updated on Box
box: TrashFileRestored
Represents a file restored from the trash
Fields
- fileVersion? FileVersionMini -
- parent? FolderMini -
- description string - The optional description of this file
- createdAt string - The date and time when the file was created on Box
- contentCreatedAt? string? - The date and time at which this file was originally created, which might be before it was uploaded to Box
- ownedBy UserMini -
- 'type "file" - The value will always be
file
- itemStatus "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted
- createdBy? UserMini -
- trashedAt? string? - The time at which this file was put in the
trash - becomes
nullafter restore
- sha1 string - The SHA1 hash of the file. This can be used to compare the contents of a file on Box with a local file
- size int - The file size in bytes. Be careful parsing this integer as it can get very large and cause an integer overflow
- sequenceId string? -
- name? string - The name of the file
- purgedAt? string? - The time at which this file is expected to be purged
from the trash - becomes
nullafter restore
- modifiedBy UserMini -
- sharedLink? string? - The shared link for this file. This will
be
nullif a file had been trashed, even though the original shared link does become active again
- etag? string? - The HTTP
etagof this file. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the file if (no) changes have happened
- contentModifiedAt? string? - The date and time at which this file was last updated, which might be before it was uploaded to Box
- 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/123thefile_idis123
- modifiedAt string - The date and time when the file was last updated on Box
- pathCollection record { total_count int, entries FolderMini[] } -
box: TrashFolder
Represents a trashed folder
Fields
- parent? FolderMini -
- createdAt? string? - The date and time when the folder was created. This value may
be
nullfor some folders such as the root folder or the trash folder
- description string -
- contentCreatedAt? string? - The date and time at which this folder was originally created
- ownedBy UserMini -
- 'type "folder" - The value will always be
folder
- itemStatus "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trashtrashedwhen the item has been moved to the trash but not deleteddeletedwhen the item has been permanently deleted
- createdBy UserMini -
- folderUploadEmail? string? - The folder upload email for this folder. This will
be
nullif a folder has been trashed, since the upload will no longer work
- trashedAt? string? - The time at which this folder was put in the trash
- size int - The folder size in bytes. Be careful parsing this integer as its value can get very large
- sequenceId? string? -
- name string - The name of the folder
- modifiedBy UserMini -
- purgedAt? string? - The time at which this folder is expected to be purged from the trash
- sharedLink? string? - The shared link for this folder. This will
be
nullif a folder has been trashed, since the link will no longer be active
- etag? string? - The HTTP
etagof this folder. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the folder if (no) changes have happened
- contentModifiedAt? string? - The date and time at which this folder was last updated
- 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/123thefolder_idis123
- modifiedAt? string? - The date and time when the folder was last updated. This value may
be
nullfor some folders such as the root folder or the trash folder
box: TrashFolderRestored
Represents a folder restored from the trash
Fields
- parent? FolderMini -
- createdAt? string? - The date and time when the folder was created. This value may
be
nullfor some folders such as the root folder or the trash folder
- description? string -
- contentCreatedAt? string? - The date and time at which this folder was originally created
- ownedBy? UserMini -
- 'type? "folder" - The value will always be
folder
- itemStatus? "active"|"trashed"|"deleted" - Defines if this item has been deleted or not.
activewhen the item has is not in the trash,trashedwhen the item has been moved to the trash but not deleted,deletedwhen the item has been permanently deleted
- createdBy? UserMini -
- folderUploadEmail? string? - The folder upload email for this folder. This will
be
nullif a folder has been trashed, even though the original upload email does become active again
- trashedAt? string? - The time at which this folder was put in the
trash - becomes
nullafter restore
- size? int - The folder size in bytes. Be careful parsing this integer as its value can get very large
- sequenceId? string? -
- name? string - The name of the folder
- modifiedBy? UserMini -
- purgedAt? string? - The time at which this folder is expected to be purged
from the trash - becomes
nullafter restore
- sharedLink? string? - The shared link for this file. This will
be
nullif a folder had been trashed, even though the original shared link does become active again
- etag? string? - The HTTP
etagof this folder. This can be used within some API endpoints in theIf-MatchandIf-None-Matchheaders to only perform changes on the folder if (no) changes have happened
- contentModifiedAt? string? - The date and time at which this folder was last updated
- 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/123thefolder_idis123
- modifiedAt? string? - The date and time when the folder was last updated. This value may
be
nullfor some folders such as the root folder or the trash folder
- pathCollection? record { total_count int, entries FolderMini[] } -
box: TrashWebLink
Represents a trashed web link
Fields
- parent? FolderMini -
- description? string - The description accompanying the web link. This is visible within the Box web application
- createdAt? string - When this file was created on Box’s servers
- ownedBy? UserMini -
- 'type? "web_link" - The value will always be
web_link
- itemStatus? "active"|"trashed"|"deleted" - Whether this item is deleted or not. Values include
active,trashedif the file has been moved to the trash, anddeletedif the file has been permanently deleted
- createdBy? UserMini -
- url? string - The URL this web link points to
- trashedAt? string? - When this file was last moved to the trash
- sequenceId? string? -
- name? string - The name of the web link
- purgedAt? string? - When this file will be permanently deleted
- modifiedBy? UserMini -
- sharedLink? string? - The shared link for this bookmark. This will
be
nullif a bookmark has been trashed, since the link will no longer be active
- etag? string - The entity tag of this web link. Used with
If-Matchheaders
- id? string - The unique identifier for this web link
- modifiedAt? string - When this file was last updated on the Box servers
box: TrashWebLinkRestored
Represents a web link restored from the trash
Fields
- parent? FolderMini -
- description? string - The description accompanying the web link. This is visible within the Box web application
- createdAt? string - When this file was created on Box’s servers
- ownedBy? UserMini -
- 'type? "web_link" - The value will always be
web_link
- itemStatus? "active"|"trashed"|"deleted" - Whether this item is deleted or not. Values include
active,trashedif the file has been moved to the trash, anddeletedif the file has been permanently deleted
- createdBy? UserMini -
- url? string - The URL this web link points to
- trashedAt? string? - The time at which this bookmark was put in the
trash - becomes
nullafter restore
- sequenceId string? -
- name? string - The name of the web link
- purgedAt? string? - The time at which this bookmark will be permanently
deleted - becomes
nullafter restore
- modifiedBy? UserMini -
- sharedLink? string? - The shared link for this bookmark. This will
be
nullif a bookmark had been trashed, even though the original shared link does become active again
- etag? string - The entity tag of this web link. Used with
If-Matchheaders
- id? string - The unique identifier for this web link
- modifiedAt? string - When this file was last updated on the Box servers
- pathCollection record { total_count int, entries FolderMini[] } -
box: UpdateAllSkillCardsOnFileRequest
Fields
- fileVersion? SkillInvocationFileVersion -
- metadata SkillInvocationMetadata - 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 SkillInvocationFile - The file to assign the cards to
- usage? SkillInvocationUsage - A descriptor that defines what items are affected by this call.
Set this to the default values when setting a card to a
successstate, and leave it out in most other situations
- status "invoked"|"processing"|"success"|"transient_failure"|"permanent_failure" - Defines the status of this invocation. Set this to
successwhen setting Skill cards
box: UpdateClassificationData
The details of the updated classification
Fields
- staticConfig? AddClassificationDataStaticConfig - A static configuration for the classification
- 'key string - A new label for the classification, as it will be shown in the web and mobile interfaces
box: UpdateClassificationOnFileRequest
The operation to perform on the classification
metadata template instance. In this case, it use
used to replace the value stored for the
Box__Security__Classification__Key field with a new
value
Fields
- op "replace" - The value will always be
replace
- path "/Box__Security__Classification__Key" - Defines classifications available in the enterprise
- value string - The name of the classification to apply to this file. To list the available classifications in an enterprise, use the classification API to retrieve the classification template which lists all available classification keys
box: UpdateClassificationOnFolderRequest
The operation to perform on the classification
metadata template instance. In this case, it use
used to replace the value stored for the
Box__Security__Classification__Key field with a new
value
Fields
- op "replace" - The value will always be
replace
- path "/Box__Security__Classification__Key" - Defines classifications available in the enterprise
- value string - The name of the classification to apply to this folder. To list the available classifications in an enterprise, use the classification API to retrieve the classification template which lists all available classification keys
box: UpdateClassificationRequest
A single classification to update
Fields
- op "editEnumOption" - The type of change to perform on the classification object
- data UpdateClassificationData - The details of the updated classification
- fieldKey "Box__Security__Classification__Key" - Defines classifications available in the enterprise
- enumOptionKey string - The original label of the classification to change
box: UpdateCollaborationRequest
Fields
- role? "editor"|"viewer"|"previewer"|"uploader"|"previewer uploader"|"viewer uploader"|"co-owner"|"owner" - The level of access granted
- expiresAt? 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
- canViewPath? 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_pathenabled to 1,000 per user. Only an owner or co-owners can invite collaborators with acan_view_pathoftrue. Only an owner can updatecan_view_pathon existing collaborations.can_view_pathcan only be used for folder collaborations. When you delete a folder withcan_view_path=true, collaborators may still see the parent path. For instructions on how to remove this, see Even though a folder invited via can_view_path is deleted, the path remains displayed
- status? "pending"|"accepted"|"rejected" - Set the status of a
pendingcollaboration invitation, effectively accepting, or rejecting the invite
box: UpdateCommentQueries
Represents the Queries record for the operation: updateComment
Fields
- fields? string[] - 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
box: UpdateCommentRequest
Fields
- message? string - The text of the comment to update
box: UpdateFileHeaders
Represents the Headers record for the operation: updateFile
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: UpdateFileQueries
Represents the Queries record for the operation: updateFile
Fields
- fields? string[] - 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
box: UpdateFileRequest
Fields
- collections? Reference[]? - An array of collections to make this file
a member of. Currently
we only support the
favoritescollection. To get the ID for a collection, use the List all collections endpoint. Passing an empty array[]ornullwill remove the file from all collections.
- permissions? FileSharedLinkPermissions - Defines who can download a file
- dispositionAt? string - The retention expiration timestamp for the given file. This date cannot be shortened once set on a file
- name? string - An optional different name for the file. This can be used to
rename the file.
File names must be unique within their parent folder. The name check is case-insensitive, so a file
named
New Filecannot be created in a parent folder that already contains a folder namednew 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
- 'lock? FileLock? - 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
nullto remove the lock
- 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
box: UpdateFileRequestHeaders
Represents the Headers record for the operation: updateFileRequest
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: UpdateFileSharedLink
The settings for the shared link to update
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? AddFileSharedLinkPermissions -
- unsharedAt? 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
box: UpdateFolderHeaders
Represents the Headers record for the operation: updateFolder
Fields
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: UpdateFolderQueries
Represents the Queries record for the operation: updateFolder
Fields
- fields? string[] - 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
box: UpdateFolderRequest
Fields
- isCollaborationRestrictedToEnterprise? boolean - Specifies if new invites to this folder are restricted to users within the enterprise. This does not affect existing collaborations
- canNonOwnersViewCollaborators? 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_collaboratorstofalseif it has not already been set
- collections? Reference[]? - An array of collections to make this folder
a member of. Currently
we only support the
favoritescollection. To get the ID for a collection, use the List all collections endpoint. Passing an empty array[]ornullwill remove the folder from all collections.
- name? string - The optional new name for this folder.
The following restrictions to folder names apply: names containing
non-printable ASCII characters, forward and backward slashes
(
/,\), names with trailing spaces, and names.and..are MISSING[`]not allowed. Folder names must be unique within their parent folder. The name check is case-insensitive, so a folder namedNew Foldercannot be created in a parent folder that already contains a folder namednew folder
- description? string - The optional description of this folder
- syncState? "synced"|"not_synced"|"partially_synced" - 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
- folderUploadEmail? record { access "open"|"collaborators" }? -
- canNonOwnersInvite? boolean - Specifies if users who are not the owner of the folder can invite new collaborators to the folder
- 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
box: UpdateFolderSharedLink
The settings for the shared link to update
Fields
- password? string - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? AddFolderSharedLinkPermissions -
- unsharedAt? 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
box: UpdateGroupMembershipQueries
Represents the Queries record for the operation: updateGroupMembership
Fields
- fields? string[] - 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
box: UpdateGroupMembershipRequest
Fields
- role? "member"|"admin" - The role of the user in the group
- configurablePermissions? record { boolean... }? - 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 ofnullfor this object will disable all configurable permissions. Specifying permissions will set them accordingly, omitted permissions will be enabled by default
box: UpdateGroupQueries
Represents the Queries record for the operation: updateGroup
Fields
- fields? string[] - 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
box: UpdateGroupRequest
Fields
- 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
- invitabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - Specifies who can invite the group to collaborate
on folders.
When set to
admins_onlythe enterprise admin, co-admins, and the group's admin can invite the group. When set toadmins_and_membersall the admins listed above and group members can invite the group. When set toall_managed_usersall managed users in the enterprise can invite the group
- name? string - The name of the new group to be created. Must be unique within the enterprise
- description? string - A human readable description of the group
- externalSyncIdentifier? 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
- memberViewabilityLevel? "admins_only"|"admins_and_members"|"all_managed_users" - 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
box: UpdateLegalHoldPolicyRequest
Fields
- releaseNotes? string - Notes around why the policy was released
- policyName? string - The name of the policy
- description? string - A description for the policy
box: UpdateMetadataTaxonomyLevelRequest
Fields
- displayName string - The display name of the taxonomy level
- description? string - The description of the taxonomy level
box: UpdateMetadataTaxonomyNodeRequest
Fields
- displayName? string - The display name of the taxonomy node
box: UpdateMetadataTaxonomyRequest
Fields
- displayName string - The display name of the taxonomy
box: UpdateRetentionPolicyRequest
Fields
- dispositionAction? "permanently_delete"|"remove_retention"|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. You can usenullif you don't want to changedisposition_action
- maxExtensionLength? RetentionPolicyMaxExtensionLengthRequest -
- policyName? string? - The name for the retention policy
- description? string? - The additional text description of the retention policy
- customNotificationRecipients? UserBase[]? - A list of users notified when the retention duration is about to end
- canOwnerExtendRetention? boolean? - Determines if the owner of items under the policy can extend the retention when the original retention duration is about to end
- retentionType? string? - Specifies the retention type:
modifiable: You can modify the retention policy. For example, you can add or remove folders, shorten or lengthen the policy duration, or delete the assignment. Use this type if your retention policy is not related to any regulatory purposes.non-modifiable: You can modify the retention policy only in a limited way: add a folder, lengthen the duration, retire the policy, change the disposition action or notification settings. You cannot perform other actions, such as deleting the assignment or shortening the policy duration. Use this type to ensure compliance with regulatory retention policies.
non-modifiabletype only. You can convert amodifiablepolicy tonon-modifiable, but not the other way around
- status? string? - Used to retire a retention policy.
If not retiring a policy, do not include this parameter
or set it to
null
- areOwnersNotified? boolean? - Determines if owners and co-owners of items under the policy are notified when the retention duration is about to end
box: UpdateSharedLinkOnFileQueries
Represents the Queries record for the operation: updateSharedLinkOnFile
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: UpdateSharedLinkOnFileRequest
Fields
- sharedLink? UpdateFileSharedLink -
box: UpdateSharedLinkOnFolderQueries
Represents the Queries record for the operation: updateSharedLinkOnFolder
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: UpdateSharedLinkOnFolderRequest
Fields
- sharedLink? UpdateFolderSharedLink -
box: UpdateSharedLinkOnWebLinkQueries
Represents the Queries record for the operation: updateSharedLinkOnWebLink
Fields
- fields string - Explicitly request the
shared_linkfields to be returned for this item
box: UpdateSharedLinkOnWebLinkRequest
Fields
- sharedLink? UpdateWebLinkSharedLink -
box: UpdateShieldBarrierSegmentRequest
An object containing update(s) to be made on the Shield Information Barrier Segment. Possible properties include 'name' and 'description', the value in object is the update
Fields
- name? string - The updated name for the shield information barrier segment
- description? string? - The updated description for the shield information barrier segment
box: UpdateSkillCardsOnFileRequest
An operation that replaces an existing card
Fields
- op? "replace" - The value will always be
replace
- path? string - The JSON Path that represents the card to replace. In most cases
this will be in the format
/cards/{index}whereindexis the zero-indexed position of the card in the list of cards
- value? SkillCard -
box: UpdateSlackIntegrationMappingRequest
Fields
- options? IntegrationMappingSlackOptions -
- boxItem? IntegrationMappingBoxItemSlack -
box: UpdateStoragePolicyAssignmentRequest
Fields
- storagePolicy StoragePolicyAssignmentsStoragePolicy -
box: UpdateTaskAssignmentRequest
Fields
- resolutionState? "completed"|"incomplete"|"approved"|"rejected" - The state of the task assigned to the user.
- For a task with an
actionvalue ofcompletethis can beincompleteorcompleted. - For a task with an
actionofreviewthis can beincomplete,approved, orrejected
- For a task with an
- message? string - An optional message by the assignee that can be added to the task
box: UpdateTaskRequest
Fields
- action? "review"|"complete" - The action the task assignee will be prompted to do. Must be
reviewdefines an approval task that can be approved or rejected,completedefines a general task which can be completed
- dueAt? string - When the task is due at
- message? string - The message included with the task
- completionRule? "all_assignees"|"any_assignee" - 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 task in order for it to be considered completed.any_assigneeaccepts any one assignee to review or approve the task in order for it to be considered completed
box: UpdateTeamsIntegrationMappingRequest
Fields
- boxItem? FolderReference -
box: UpdateTermsOfServiceRequest
Fields
- text string - The terms of service text to display to users.
The text can be set to empty if the
statusis set todisabled
- status "enabled"|"disabled" - Whether this terms of service is active
box: UpdateTermsOfServiceUserStatusRequest
Fields
- isAccepted boolean - Whether the user has accepted the terms
box: UpdateUserQueries
Represents the Queries record for the operation: updateUser
Fields
- fields? string[] - 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
box: UpdateUserRequest
Fields
- canSeeManagedUsers? boolean - Whether the user can see other enterprise users in their contact list
- role? "coadmin"|"user" - The user’s enterprise role
- address? string - The user’s address
- notificationEmail? UserNotificationEmail? -
- enterprise? string? - Set this to
nullto roll the user out of the enterprise and make them a free user
- timezone? string - The user's timezone
- isExemptFromLoginVerification? boolean - Whether the user must use two-factor authentication
- isExternalCollabRestricted? boolean - Whether the user is allowed to collaborate with users outside their enterprise
- isCollaboratedContentAvailableWhenOwnerInactive? boolean - Whether collaborators can access content owned by the user when the user is inactive. This setting preserves existing collaborator access and does not grant new permissions
- login? string - The email address the user uses to log in Note: If the target user's email is not confirmed, then the primary login address cannot be changed
- notify? boolean - Whether the user should receive an email when they are rolled out of an enterprise
- externalAppUserId? 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. Note: In order to update this field, you need to request a token using the application that created the app user
- isPasswordResetRequired? boolean - Whether the user is required to reset their password
- isExemptFromDeviceLimits? boolean - Whether to exempt the user from enterprise device limits
- phone? string - The user’s phone number
- spaceAmount? int - The user’s total available space in bytes. Set this to
-1to indicate unlimited storage
- name? string - The name of the user
- isSyncEnabled? boolean - Whether the user can use Box Sync
- jobTitle? string - The user’s job title
- trackingCodes? TrackingCode[] - 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
- status? "active"|"inactive"|"cannot_delete_edit"|"cannot_delete_edit_upload" - The user's account status
box: UpdateWebhookRequest
Fields
- address? string - The URL that is notified by this webhook
- triggers? ("FILE.UPLOADED"|"FILE.PREVIEWED"|"FILE.DOWNLOADED"|"FILE.TRASHED"|"FILE.DELETED"|"FILE.RESTORED"|"FILE.COPIED"|"FILE.MOVED"|"FILE.LOCKED"|"FILE.UNLOCKED"|"FILE.RENAMED"|"COMMENT.CREATED"|"COMMENT.UPDATED"|"COMMENT.DELETED"|"TASK_ASSIGNMENT.CREATED"|"TASK_ASSIGNMENT.UPDATED"|"METADATA_INSTANCE.CREATED"|"METADATA_INSTANCE.UPDATED"|"METADATA_INSTANCE.DELETED"|"FOLDER.CREATED"|"FOLDER.RENAMED"|"FOLDER.DOWNLOADED"|"FOLDER.RESTORED"|"FOLDER.DELETED"|"FOLDER.COPIED"|"FOLDER.MOVED"|"FOLDER.TRASHED"|"WEBHOOK.DELETED"|"COLLABORATION.CREATED"|"COLLABORATION.ACCEPTED"|"COLLABORATION.REJECTED"|"COLLABORATION.REMOVED"|"COLLABORATION.UPDATED"|"SHARED_LINK.DELETED"|"SHARED_LINK.CREATED"|"SHARED_LINK.UPDATED"|"SIGN_REQUEST.COMPLETED"|"SIGN_REQUEST.DECLINED"|"SIGN_REQUEST.EXPIRED"|"SIGN_REQUEST.SIGNER_EMAIL_BOUNCED"|"SIGN_REQUEST.SIGN_SIGNER_SIGNED"|"SIGN_REQUEST.SIGN_DOCUMENT_CREATED"|"SIGN_REQUEST.SIGN_ERROR_FINALIZING")[] - An array of event names that this webhook is to be triggered for
- target? WebhooksTarget - The item that will trigger the webhook
box: UpdateWebLinkRequest
Fields
- 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
- sharedLink? WebLinkSharedLink -
- url? string - The new URL that the web link links to. Must start with
"http://"or"https://"
box: UpdateWebLinkSharedLink
The settings for the shared link to update
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- permissions? UpdateWebLinkSharedLinkPermissions -
- unsharedAt? 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
box: UpdateWebLinkSharedLinkPermissions
Fields
- canEdit? boolean - This value can only be
trueistypeisfile
- canPreview? boolean - If the shared link allows for previewing of files.
This value is always
true. For shared links on folders this also applies to any items in the folder
- canDownload? boolean - If the shared link allows for downloading of files.
This can only be set when
accessis set toopenorcompany
box: 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
box: UploadFileHeaders
Represents the Headers record for the operation: uploadFile
Fields
- contentMd5? string - An optional header containing the SHA1 hash of the file to ensure that the file was not corrupted in transit
box: UploadFileQueries
Represents the Queries record for the operation: uploadFile
Fields
- fields? string[] - 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
box: UploadFileRequest
Fields
- file record { fileContent byte[], fileName string } - The content of the file to upload to Box.
<Message warning>
The
attributespart of the body must come before thefilepart. Requests that do not follow this format when uploading the file will receive a HTTP400error with ametadata_after_file_contentserror code. </Message>
- 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
attributespart of the body must come before thefilepart. Requests that do not follow this format when uploading the file will receive a HTTP400error with ametadata_after_file_contentserror code. </Message>
box: UploadFileVersionHeaders
Represents the Headers record for the operation: uploadFileVersion
Fields
- contentMd5? string - An optional header containing the SHA1 hash of the file to ensure that the file was not corrupted in transit
- ifMatch? string - Ensures this item hasn't recently changed before
making changes.
Pass in the item's last observed
etagvalue into this header and the endpoint will fail with a412 Precondition Failedif it has changed since
box: UploadFileVersionQueries
Represents the Queries record for the operation: uploadFileVersion
Fields
- fields? string[] - 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
box: UploadFileVersionRequest
Fields
- file record { fileContent byte[], fileName string } - The content of the file to upload to Box.
<Message warning>
The
attributespart of the body must come before thefilepart. Requests that do not follow this format when uploading the file will receive a HTTP400error with ametadata_after_file_contentserror code. </Message>
- attributes FileContentAttributes - 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
attributespart of the body must come before thefilepart. Requests that do not follow this format when uploading the file will receive a HTTP400error with ametadata_after_file_contentserror code. </Message>
box: UploadPart
The representation of an upload session chunk
Fields
- Fields Included from *UploadPartMini
- sha1? string - The SHA1 hash of the chunk.
box: UploadPartMini
The basic representation of an upload session chunk
Fields
- 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
- partId? string - The unique ID of the chunk
box: UploadPartOfFileHeaders
Represents the Headers record for the operation: uploadPartOfFile
Fields
- digest string - The RFC3230 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. To get the value for theSHAdigest, use the openSSL command to encode the file part:openssl sha1 -binary <FILE_PART_NAME> | base64.
- contentRange string - The byte range of the chunk.
Must not overlap with the range of a part already
uploaded this session. Each part’s size must be
exactly equal in size to the part size specified
in the upload session that you created.
One exception is the last part of the file, as this can be smaller.
When providing the value for
content-range, remember that:- The lower bound of each part's byte range must be a multiple of the part size.
- The higher bound must be a multiple of the part size - 1
box: UploadPartPlan
Represents a planned upload part with SHA-512 hash
for upload session planning
Fields
- 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
- sha512 string - The
SHA-512hash of the chunk
box: UploadPartPlanHit
Represents a planned upload part that already exists on the server (cache hit)
Fields
- 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
- sha512 string - The
SHA-512hash of the chunk
- partId string - The unique ID of the chunk
box: UploadParts
A list of uploaded chunks for an upload session
Fields
- Fields Included from *UploadPartsPart1
- offset int
- totalCount int
- limit int
- order CollectionsOrder[]
- anydata...
- Fields Included from *UploadPartsPart12
- entries UploadPart[]
- anydata...
box: UploadPartsPart1
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- 'order? CollectionsOrder[] - 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
box: UploadPartsPart12
Fields
- entries? UploadPart[] - A list of uploaded chunks for an upload session.
box: UploadSession
An upload session for chunk uploading a file
Fields
- numPartsProcessed? Signed32 - 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
- partSize? 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
- totalParts? Signed32 - The total number of parts expected in this upload session, as determined by the file size and part size
- id? string - The unique identifier for this session
- sessionExpiresAt? string - The date and time when this session expires
- 'type? "upload_session" - The value will always be
upload_session
box: UploadSessionPlanRequest
Request body for planning an upload session. This allows checking which parts already exist on the server before uploading
Fields
- parts UploadPartPlan[] - The list of parts to check for existence
box: UploadSessionPlanResponse
Response from planning an upload session. Contains information about which parts already exist (hits) and which need to be uploaded (misses)
Fields
- hits UploadPartPlanHit[] - Parts that already exist on the server and do not need to be uploaded again
- uploadSessionId string - The unique identifier for this upload session
- misses UploadPartPlan[] - Parts that do not exist on the server and need to be uploaded
box: UploadUrl
The details for the upload session for the file
Fields
- uploadToken? string - An optional access token to use to upload the file
- uploadUrl? string - A URL for an upload session that can be used to upload the file
box: User
A standard representation of a user, as returned from any user API endpoints by default
Fields
- Fields Included from *UserMini
- spaceUsed? int - The amount of space in use by the user.
- maxUploadSize? int - The maximum individual file size in bytes the user can have.
- address? string - The user’s address.
- notification_email? User_notification_email? - 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.
- timezone? string - The user's timezone.
- createdAt? string - When the user object was created.
- avatarUrl? string - URL of the user’s avatar image.
- phone? string - The user’s phone number.
- spaceAmount? int - The user’s total available space amount in bytes.
- modifiedAt? string - When the user object was last modified.
- jobTitle? string - The user’s job title.
- status? "active"|"inactive"|"cannot_delete_edit"|"cannot_delete_edit_upload" - The user's account status.
box: User_notification_email
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
- isConfirmed? boolean - Specifies if this email address has been confirmed.
- email? string - The email address to send the notifications to.
box: UserAvatar
A resource holding URLs to the avatar uploaded to a Box application
Fields
- picUrls? UserAvatarPicUrls -
box: UserAvatarPicUrls
Represents an object with user avatar URLs
Fields
- small? string - The location of a small-sized avatar
- preview? string - The location of the avatar preview
- large? string - The location of a large-sized avatar
box: UserBase
A mini representation of a user, used when nested within another resource
Fields
- id string - The unique identifier for this user
- 'type "user" - The value will always be
user
box: UserCollaborations
A mini representation of a user, can be returned only when
the status is pending
Fields
- Fields Included from *UserBase
- id string
- type "user"
- anydata...
- isActive? boolean - If set to
false, the user is either deactivated or deleted.
- name? string - The display name of this user. If the collaboration status is
pending, an empty string is returned.
- login? string - The primary email address of this user. If the collaboration status is
pending, a login value is returned.
box: UserFull
A full representation of a user, as can be returned from any user API endpoint
Fields
- Fields Included from *User
- spaceUsed int
- maxUploadSize int
- address string
- notification_email User_notification_email|()
- timezone string
- createdAt string
- language string
- avatarUrl string
- phone string
- spaceAmount int
- modifiedAt string
- jobTitle string
- status "active"|"inactive"|"cannot_delete_edit"|"cannot_delete_edit_upload"
- name string
- login string
- id string
- type "user"
- anydata...
- canSeeManagedUsers? boolean - Whether the user can see other enterprise users in their contact list.
- role? "admin"|"coadmin"|"user" - The user’s enterprise role.
- isExemptFromLoginVerification? boolean - Whether the user must use two-factor authentication.
- isExternalCollabRestricted? boolean - Whether the user is allowed to collaborate with users outside their enterprise.
- isCollaboratedContentAvailableWhenOwnerInactive? boolean - Whether collaborators can access content owned by the user when the user is inactive. This setting preserves existing collaborator access and does not grant new permissions.
- externalAppUserId? 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.
- hostname? string - The root (protocol, subdomain, domain) of any links that need to be generated for the user.
- isExemptFromDeviceLimits? boolean - Whether to exempt the user from Enterprise device limits.
- isSyncEnabled? boolean - Whether the user can use Box Sync.
- isPlatformAccessOnly? boolean - Whether the user is an App User.
- trackingCodes? TrackingCode[] - 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.
- myTags? string[] - Tags for all files and folders owned by the user. Values returned will only contain tags that were set by the requester.
box: UserIntegrationMappings
A user representation for integration mappings API purposes. Fields name and login are not required
Fields
- Fields Included from *UserBase
- id string
- type "user"
- anydata...
- name? string - The display name of this user.
- login? string - The primary email address of this user.
box: UserMini
A mini representation of a user, as can be returned when nested within other resources
Fields
- Fields Included from *UserBase
- id string
- type "user"
- anydata...
- name? string - The display name of this user.
- login? string - The primary email address of this user.
box: 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.
Set this value to null to remove the notification email
Fields
- email? string - The email address to send the notifications to
box: Users
A list of users
Fields
- Fields Included from *UsersPart1
- Fields Included from *UsersPart12
- offset int
- totalCount int
- order CollectionsOrder[]
- anydata...
- Fields Included from *UsersPart123
- entries UserFull[]
- anydata...
box: UsersPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: UsersPart12
The part of an API response that describes pagination
Fields
- offset? int - The 0-based offset of the first entry in this set. This will be the same
as the
offsetquery parameter. This field is only returned for calls that use offset-based pagination. For marker-based paginated APIs, this field will be omitted
- totalCount? 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
- 'order? CollectionsOrder[] - 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
box: UsersPart123
Fields
- entries? UserFull[] - A list of users.
box: 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 -
box: WatermarkWatermark
Fields
- createdAt? string - When this watermark was created
- modifiedAt? string - When this task was modified
box: Webhook
Represents a configured webhook
Fields
- Fields Included from *WebhookMini
- id string
- type "webhook"
- target WebhooksTarget
- anydata...
- address? string - The URL that is notified by this webhook.
- createdAt? string - A timestamp identifying the time that the webhook was created.
- triggers? ("FILE.UPLOADED"|"FILE.PREVIEWED"|"FILE.DOWNLOADED"|"FILE.TRASHED"|"FILE.DELETED"|"FILE.RESTORED"|"FILE.COPIED"|"FILE.MOVED"|"FILE.LOCKED"|"FILE.UNLOCKED"|"FILE.RENAMED"|"COMMENT.CREATED"|"COMMENT.UPDATED"|"COMMENT.DELETED"|"TASK_ASSIGNMENT.CREATED"|"TASK_ASSIGNMENT.UPDATED"|"METADATA_INSTANCE.CREATED"|"METADATA_INSTANCE.UPDATED"|"METADATA_INSTANCE.DELETED"|"FOLDER.CREATED"|"FOLDER.RENAMED"|"FOLDER.DOWNLOADED"|"FOLDER.RESTORED"|"FOLDER.DELETED"|"FOLDER.COPIED"|"FOLDER.MOVED"|"FOLDER.TRASHED"|"WEBHOOK.DELETED"|"COLLABORATION.CREATED"|"COLLABORATION.ACCEPTED"|"COLLABORATION.REJECTED"|"COLLABORATION.REMOVED"|"COLLABORATION.UPDATED"|"SHARED_LINK.DELETED"|"SHARED_LINK.CREATED"|"SHARED_LINK.UPDATED"|"SIGN_REQUEST.COMPLETED"|"SIGN_REQUEST.DECLINED"|"SIGN_REQUEST.EXPIRED"|"SIGN_REQUEST.SIGNER_EMAIL_BOUNCED"|"SIGN_REQUEST.SIGN_SIGNER_SIGNED"|"SIGN_REQUEST.SIGN_DOCUMENT_CREATED"|"SIGN_REQUEST.SIGN_ERROR_FINALIZING")[] - An array of event names that this webhook is to be triggered for.
- createdBy? UserMini -
box: WebhookMini
Represents a configured webhook
Fields
- id? string - The unique identifier for this webhook
- 'type? "webhook" - The value will always be
webhook
- target? WebhooksTarget - The item that will trigger the webhook
box: Webhooks
A list of webhooks
Fields
- Fields Included from *WebhooksPart1
- Fields Included from *WebhooksPart12
- entries WebhookMini[]
- anydata...
box: WebhooksPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: WebhooksPart12
Fields
- entries? WebhookMini[] - A list of webhooks.
box: WebhooksTarget
The item that will trigger the webhook
Fields
- id? string - The ID of the item to trigger a webhook
- 'type? "file"|"folder" - The type of item to trigger a webhook
box: 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
- parent? FolderMini -
- description? string - The description accompanying the web link. This is visible within the Box web application.
- createdAt? string - When this file was created on Box’s servers.
- allowedSharedLinkAccessLevels? ("open"|"company"|"collaborators")[] - The shared link access levels the authenticated user is allowed to use when creating or updating a shared link for this web link. The list depends on item policy and user authorization, so it may be narrower than the levels available to the owner. An empty array means no access level is available to this user.
- ownedBy? UserMini -
- itemStatus? "active"|"trashed"|"deleted" - Whether this item is deleted or not. Values include
active,trashedif the file has been moved to the trash, anddeletedif the file has been permanently deleted.
- createdBy? UserMini -
- trashedAt? string? - When this file was moved to the trash.
- collections? Collection[] - The collections that this web link belongs to. For more information, see the collections guide.
- purgedAt? string? - When this file will be permanently deleted.
- modifiedBy? UserMini -
- sharedLink? record { isPasswordEnabled boolean, vanityName string?, access "open"|"company"|"collaborators" , permissions record { canEdit boolean, canPreview boolean, canDownload boolean }, downloadUrl string?, effectiveAccess "open"|"company"|"collaborators" , effectivePermission "can_edit"|"can_download"|"can_preview"|"no_access" , vanityUrl string?, unsharedAt string?, previewCount int, url string, downloadCount int }? -
- modifiedAt? string - When this file was last updated on the Box servers.
- pathCollection? record { entries FolderMini[], totalCount int } -
box: 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
- etag? string - The entity tag of this web link. Used with
If-Matchheaders
- id string - The unique identifier for this web link
- 'type "web_link" - The value will always be
web_link
box: 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
- sequenceId? string? -
- name? string - The name of the web link.
- url? string - The URL this web link points to.
box: WebLinkSharedLink
The settings for the shared link to update
Fields
- password? string? - The password required to access the shared link. Set the
password to
nullto remove it. Passwords must now be at least eight characters long and include a number, upper case letter, or a non-numeric or non-alphabetic character. A password can only be set whenaccessis set toopen
- access? "open"|"company"|"collaborators" - 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_linkobject with noaccessfield, for example{ "shared_link": {} }. Thecompanyaccess level is only available to paid accounts
- vanityName? 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
- unsharedAt? 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
box: WebLinksParent
The parent folder to create the web link within
Fields
- id string - The ID of parent folder
box: Workflow
Box Relay Workflows are objects that represent a named collection of flows.
Your application must be authorized to use the Manage Box Relay application
scope within the developer console in order to use this resource
Fields
- Fields Included from *WorkflowMini
- flows? Workflow_flows[] - A list of flows assigned to a workflow.
box: Workflow_flows
A step in a Box Relay Workflow. Each flow contains a Trigger and
a collection of Outcomes to perform once the conditions of a
Trigger are met.
Fields
- outcomes? record { ifRejected record { actionType "add_metadata"|"assign_task"|"copy_file"|"copy_folder"|"create_folder"|"delete_file"|"delete_folder"|"lock_file"|"move_file"|"move_folder"|"remove_watermark_file"|"rename_folder"|"restore_folder"|"share_file"|"share_folder"|"unlock_file"|"upload_file"|"wait_for_task"|"watermark_file"|"go_back_to_step"|"apply_file_classification"|"apply_folder_classification"|"send_notification" , name string, id string, 'type "outcome" }[], actionType "add_metadata"|"assign_task"|"copy_file"|"copy_folder"|"create_folder"|"delete_file"|"delete_folder"|"lock_file"|"move_file"|"move_folder"|"remove_watermark_file"|"rename_folder"|"restore_folder"|"share_file"|"share_folder"|"unlock_file"|"upload_file"|"wait_for_task"|"watermark_file"|"go_back_to_step"|"apply_file_classification"|"apply_folder_classification"|"send_notification" , name string, id string, 'type "outcome" }[] -
- createdAt? string - When this flow was created.
- id? string - The identifier of the flow.
- 'type? "flow" - The flow's resource type.
- createdBy? UserBase -
box: WorkflowMini
Box Relay Workflows are objects that represent a named collection of flows.
You application must be authorized to use the Manage Box Relay application
scope within the developer console in order to use this resource
Fields
- isEnabled? boolean - Specifies if this workflow is enabled
- name? string - The name of the workflow
- description? string - The description for a workflow
- id? string - The unique identifier for the workflow
- 'type? "workflow" - The value will always be
workflow
box: Workflows
A list of workflows.
You application must be authorized to use the Manage Box Relay application
scope within the developer console in order to use this resource
Fields
- Fields Included from *WorkflowsPart1
- Fields Included from *WorkflowsPart12
- entries Workflow[]
- anydata...
box: WorkflowsPart1
The part of an API response that describes marker based pagination
Fields
- nextMarker? string? - The marker for the start of the next page of results
- 'limit? int - The limit that was used for these entries. This will be the same as the
limitquery parameter unless that value exceeded the maximum value allowed. The maximum value varies by API
- prevMarker? string? - The marker for the start of the previous page of results
box: WorkflowsPart12
Fields
- entries? Workflow[] - A list of workflows.
box: ZipDownload
Represents a successful request to create a zip archive of a list of files
and folders
Fields
- expiresAt? string - The time and date when this archive will expire. After this time the
status_urlanddownload_urlwill return an error. By default, these URLs are only valid for a few seconds, unless a download is started after which thedownload_urlis valid for the duration of the download, and thestatus_urlis valid for 12 hours from the start of the download
- nameConflicts? record { id string, 'type "file"|"folder" , original_name string, download_name string }[][] - 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
- downloadUrl? string - The URL that can be used to download the
ziparchive. AGetrequest to this URL will start streaming the items requested. By default, this URL is only valid for a few seconds, until theexpires_attime, 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
- statusUrl? string - The URL that can be used to get the status of the
ziparchive being downloaded. AGetrequest 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 theexpires_attime, 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
box: ZipDownloadRequest
A request to create a zip archive to download
Fields
- items ZipDownloadRequestItems[] - A list of items to add to the
ziparchive. These can be folders or files
- downloadFileName? string - The optional name of the
ziparchive. This name will be appended by the.zipfile extension, for exampleJanuary Financials.zip
box: ZipDownloadRequestItems
An item to add to the zip archive. This can be a file or a folder
Fields
- 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
- 'type "file"|"folder" - The type of the item to add to the archive
box: ZipDownloadStatus
The status of a zip archive being downloaded
Fields
- skippedFolderCount? 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
- totalFileCount? int - The total number of files in the archive
- downloadedFileCount? int - The number of files that have already been downloaded
- state "in_progress"|"failed"|"succeeded" (default "in_progress") - The state of the archive being downloaded
- skippedFileCount? 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
Union types
box: SearchResultItem
SearchResultItem
An item in search results. This can be a file, folder, or web link
box: RetentionPolicyMaxExtensionLengthResponse
RetentionPolicyMaxExtensionLengthResponse
The maximum extension length of the retention date. This value specifies the duration in days for which the retention date of the file under policy can be extended. If the policy type is other than 'finite' or the disposition action is other than 'permanently delete', or the maximum extension length is undefined, this field will be set to 'none'
box: RetentionPolicyMaxExtensionLengthRequest
RetentionPolicyMaxExtensionLengthRequest
The maximum extension length of the retention date. This value specifies the duration in days for which the retention date of the file under policy can be extended. It can be specified only for the 'finite' policy type where the disposition action is 'permanently delete', otherwise the server will return status 400. If this value is 'none', it won't be possible to extend the retention
box: MetadataQueryResultItem
MetadataQueryResultItem
The mini representation of a file or folder
box: AiAskAgent
AiAskAgent
The AI agent to be used to handle the AI ask request
box: CollaborationAccessGrantee
CollaborationAccessGrantee
The user or group that is granted access
box: SearchResultWithSharedLinkItem
SearchResultWithSharedLinkItem
An item in search results with a shared link. This can be a file, folder, or web link
box: EventSourceResource
EventSourceResource
The resource that triggered an event
box: AiTaxonomySource
AiTaxonomySource
A taxonomy source to be used for the structured extraction. It can either be an existing CSV file or a taxonomy
box: RecentItemResource
RecentItemResource
A recently accessed item resource. This can be a file, folder, or web link
box: SignRequestSignerInputValidation
SignRequestSignerInputValidation
Specifies the formatting rules that signers must follow for text field inputs. If set, this validation is mandatory. The format can be selected from a predefined list of options (e.g., email, phone number, date) or defined using a custom regular expression
box: AiLlmEndpointParams
AiLlmEndpointParams
The parameters for the LLM endpoint specific to a model
box: CollaborationItem
CollaborationItem
A mini representation of the file, folder, or web link that a collaboration is granted on
box: AiTextGenAgent
AiTextGenAgent
The AI agent to be used to handle the AI text generation request
box: AiExtractAgent
AiExtractAgent
The AI agent to be used to handle the AI metadata freeform extraction request
box: SearchResultsResponse
SearchResultsResponse
Search result from the content search endpoint
box: SkillCard
SkillCard
Box Skill card
box: AiAgent
AiAgent
Can be one of the following objects:
- AI agent for questions
- AI agent for text generation
- AI agent for freeform metadata extraction
- AI agent for structured metadata extraction
box: Item
Item
An item represents a file, folder, or web link
box: Resource
Resource
The file or folder resource
box: AiExtractStructuredAgent
AiExtractStructuredAgent
The AI agent to be used to handle the AI extract structured request
box: MetadataInstanceValue
MetadataInstanceValue
The value to be set or tested.
Required for add, replace, and test operations. For add,
if the value exists already the previous value will be overwritten
by the new value. For replace, the value must exist before
replacing.
For test, the existing value at the path location must match
the specified value
box: AppItemAssociatedItem
AppItemAssociatedItem
The file, folder or web link which is associated with the app item
Array types
box: MetadataInstanceValueVariant1234
MetadataInstanceValueVariant1234
String types
Integer types
box: MetadataInstanceValueVariant12
MetadataInstanceValueVariant12
Simple name reference types
box: RetentionPolicyMaxExtensionLengthRequestVariant123
RetentionPolicyMaxExtensionLengthRequestVariant123
box: Metadata
Metadata
An instance of a metadata template, which has been applied to a file or folder
Import
import ballerinax/box;Metadata
Released date: 4 days ago
Version: 2.0.0
License: Apache-2.0
Security
Direct vulnerabilities: No known direct vulnerabilities
Indirect vulnerabilities:
Checked on 2026-11-23 via OSV.dev
Compatibility
Platform: any
Ballerina version: 2201.12.0
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 4
Weekly downloads
Keywords
Vendor/Box
Area/Storage & File Management
Type/Connector
Contributors