| Namespace | http://www.mulesoft.org/schema/mule/box |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/box/current/mule-box.xsd (View Schema) |
| Schema Version | 2.0 |
| Minimum Mule Version | 3.3 |
Box Cloud Connector for API V2.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Sources | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Message source that subscribes to the events long polling server and will trigger a new message each time an event is generated.
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Used to convert one of the user’s confirmed email aliases into the user’s primary login.
| |||||||||||
Used to add a comment to a discussion.
| |||||||||||
Used to add a comment by the user to a specific file
| |||||||||||
Used to create a copy of a file in another folder.
| |||||||||||
Used to create a shared link for this particular folder
| |||||||||||
Used to add a collaboration for a single user to a folder.
| |||||||||||
Used to create the metadata for a new discussion for a particular folder.
| |||||||||||
Adds a new email alias to the given user’s account.
| |||||||||||
Creates a new folder and returns a folder object with all its associated information
| |||||||||||
Used to provision a new user in an enterprise.
| |||||||||||
Used to delete a single collaboration.
| |||||||||||
Delets a comment.
| |||||||||||
Removes an email alias from a user.
| |||||||||||
Discards a file to the trash.
| |||||||||||
Deletes a folder
| |||||||||||
Deletes a user in an enterprise account.
| |||||||||||
Downloads a file
| |||||||||||
Used to get information about a single collaboration.
| |||||||||||
Used to retrieve the message and metadata about a specific comment.
| |||||||||||
Used to retrieve the metadata about a specific discussion.
| |||||||||||
Used to retrieve all comments for a given discussion.
| |||||||||||
Retrieves all email aliases for this user.
| |||||||||||
Retrieves events for all users in an enterprise.
| |||||||||||
Use this to get events for a given user.
| |||||||||||
Requests access to a long polling server that
notifies about events in real time.
| |||||||||||
Retrieves the comments on a particular file, if any exist.
| |||||||||||
Used to retrieve the metadata about a file.
| |||||||||||
Retrieves a thumbnail, or smaller image representation, of this file.
| |||||||||||
Retrieves information about a given folder.
| |||||||||||
Returns the folder information for a given path
| |||||||||||
Retrieves the discussions on a particular folder, if any exist.
| |||||||||||
Traverses a given folder looking for a resource (file or folder) of a given name.
| |||||||||||
Retrieves the files and/or folders contained within this folder without any other metadata about the folder in the mini format is returned for each item by default.
| |||||||||||
Returns the item information for a given path.
| |||||||||||
Used to retrieve all pending collaboration invites for this user.
| |||||||||||
Retrieves the metadata of a trashed file
| |||||||||||
Retrieves a folder that has been moved to the trash.
| |||||||||||
Get the folders in the Trash.
| |||||||||||
Retrieves information about the user who is currently logged in
i.e.
| |||||||||||
Returns a list of all users for the Enterprise
| |||||||||||
If there are previous versions of this file, this method can be used to retrieve metadata about the older versions.
| |||||||||||
Moves all of the content from within one user’s folder into a new folder in another user’s account.
| |||||||||||
Permanently deletes an item that is in the trash.
| |||||||||||
Permanently deletes an item that is in the trash.
| |||||||||||
Restores a file that has been moved to the trash.
| |||||||||||
Restores an item that has been moved to the trash.
| |||||||||||
The search endpoint provides a simple way of finding items that are accessible in a given user’s Box account.
| |||||||||||
Used to create a shared link for this particular file.
| |||||||||||
Used to create a shared link for this particular folder
| |||||||||||
Deletes the shared link associated to a file
| |||||||||||
Deletes the shared link associated to a folder
| |||||||||||
Used to update an existing collaboration.
| |||||||||||
Used to update the message of the comment.
| |||||||||||
Used to update the metadata for an existing discussion.
| |||||||||||
Update a file’s information.
| |||||||||||
Used to update information about the folder.
| |||||||||||
Used to edit the settings and information about a user.
| |||||||||||
Uploads a new version of a file by reading the contents from a path in local storage
| |||||||||||
Uploads a new version of a file from an input stream
| |||||||||||
Receives the path of a file in local storage and uploads its content
| |||||||||||
Creates a new file with the contents of a java.io.InputStream.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:box="http://www.mulesoft.org/schema/mule/box"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/box
http://www.mulesoft.org/schema/mule/box/current/mule-box.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| https://api.box.com/2.0/ | Optional. The api's base url | ||||||||||
| The OAuth2 client id | |||||||||||
| The OAuth2 client secret | |||||||||||
| https://upload.box.com/api/2.0/files | Optional. The url of the endpoints dedicated to file uploading operations | ||||||||||
| false | Optional. If set to true, Box will be asked to gzip all its responses | ||||||||||
| https://api.box.com/oauth2/authorize | Optional. The URL defined by the Service Provider where the resource owner will be redirected to grant authorization to the connector | ||||||||||
| https://api.box.com/oauth2/token | Optional. The URL defined by the Service Provider to obtain an access token | ||||||||||
This connector uses OAuth as an authorization and authentication mechanism with automatic saving and restoring of access tokens. Every message processor in this connector has an extra attribute entitled accessTokenId which is an identification of the user authorizing the conenctor. In order to obtain an access token identification you need to first call the authroize message processor.
Authorizing the connector is a simple process of calling:
<box:authorize/>
The call to authorize message processor must be made from a message coming from an HTTP inbound endpoint as the authorize process will reply with a redirect to the service provider. The following is an example of how to use it in a flow with an HTTP inbound endpoint:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<box:authorize/>
</flow>
If you hit that endpoint via a web-browser it will initiate the OAuth dance, redirecting the user to the service provider page and creating a callback endpoint so the service provider can redirect back once the user has been authenticated and properly authorized the connector. Once the callback gets called then the connector will automatically issue an access token identifier that you need to save as either a cookie or a database record for any subsequent calls.
The authorize message processor also supports the following attributes:
| Authorize Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | |||||||||
| https://api.box.com/oauth2/authorize | Optional. The URL defined by the Service Provider where the resource owner will be redirected to grant authorization to the connector | ||||||||||
| https://api.box.com/oauth2/token | Optional. The URL defined by the Service Provider to obtain an access token | ||||||||||
The authorize message processor is an intercepting one. If the connector is not authorized yet, it will redirect to the service provider so the user can authorize the connector. This is the reason as to why the authorize needs to be behind and http:inbound-endpoint. The service provider upon successful authentication and authorization then will call back the connector. The connector will extract information from that call, set its internal state to authorized, and then continue execution. Continuing execution means executing everything that was after the authorize whose execution got interrupted because the connector was not authorized.
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<box:authorize/>
<http:response-builder status="200">
<set-payload value="You have successfully authorized the connector"/>
</http:response-builder>
</flow>
In the previous example we added the http:response-build (notice that this element is available only in Mule 3.3.0 and later). If the connector is not authorized, the execution of the response builder will be delayed up to the point of the callback execution.
On the other hand if the connector has been authorized and you call authorize again then the flow execution will not stop, it will rather continue and the http:response-builder will get executed right away rather than after the callback.
The following is an example of the authorize message processor, after which it will print the access token identifier to the log:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<box:authorize/>
<log level="INFO" message="The connector has been properly authorized. The access token identifier is #[flowVars['OAuthAccessTokenId']]"/>
</flow>
The OAuthAccessTokenId flow variable is a special variable available to all the message processors executing after the authorize call. The following snippet shows how you can save it as a HTTP protocol cookie:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<box:authorize/>
<http:response-builder status="200">
<http:set-cookie name="accessTokenId" value="#[flowVars['OAuthAccessTokenId']]"/>
<set-payload value="You have successfully authorized the connector. You access token id is #[flowVars['OAuthAccessTokenId']]"/>
</http:response-builder>
</flow>
The access token identifier is unique per user and therefore the connector can be authorized for many users. If the user authorizes the connector twice it will have the same access token identifier both times.
If for any reason, an errors ocurrs while processing the callback, the exception strategy of the flow containing the authorize will be executed. So, if the callback sent the wrong information you can handle that situation by setting up an exception strategy as follows:
<flow name="authorizationAndAuthenticationFlow">
<http:inbound-endpoint host="localhost" port="8080" path="oauth-authorize"/>
<box:authorize/>
<http:response-builder status="200">
<set-payload value="You have successfully authorized the connector"/>
</http:response-builder>
<catch-exception-strategy>
<http:response-builder status="404">
<set-payload value="An error has occurred authorizing the connector"/>
</http:response-builder>
</catch-exception-strategy>
</flow>
Once this connector has been authorized further calls to the authorize message processor will be no-ops. If you wish to reset the state of the connector back to a non-authorized state you can call:
<box:unauthorize/>
Keep in mind that after the connector is unauthorized all future calls that attempt to access protected resources will fail until the connector is re-authorized.
As mentioned earlier once authorize gets called and before we redirect the user to the service provider we create a callback endpoint. The callback endpoint will get called automatically by the service provider once the user is authenticated and he grants authorization to the connector to access his private information.
The callback can be customized in the config element of the this connector as follows:
<box:config>
<box:oauth-callback-config domain="${fullDomain}" localPort="10010" remotePort="80"/>
</box:config>
The oauth-callback-config element can be used to customize the endpoint that gets created for the callback. It features the following attributes:
| OAuth Callback Config Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Description | ||||||||||
| Optional. Reference to a user-defined HTTP connector. | |||||||||||
| Optional. The domain portion of the callback URL. This is usually something like xxx.cloudhub.io if you are deploying to CloudHub for example. | |||||||||||
| Optional. The local port number that the endpoint will listen on. Normally 80, in the case of CloudHub you can use the environment variable 10010. | |||||||||||
| Optional. This is the port number that we will tell the service provider we are listening on. It is usually the same as localPort but it is separated in case your deployment features port forwarding or a proxy. | |||||||||||
| Optional. Path under which the callback should be exposed. If not specified a random path will be generated. | |||||||||||
The example shown above is what the configuration would look like if your app would be deployed to CloudHub.
This connector has the capability of automatically saving and restoring access tokens. The connector will store in either the default user object store or a user-defined one the acquired access tokens, refresh tokens, and any other pertinent information using the access token identifier as the key.
The object store can be configured as follows
<box:config>
<box:oauth-store-config objectStore-ref="my-object-store"/>
</box:config>
There is only a single attribute entitled objectStore-ref in the oauth-store-config element that allows the user to specify the name of the object store that he wishes to use to save and restore access tokens.
Used to convert one of the user’s confirmed email aliases into the user’s primary login.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user being updated | String | */* | UTF-8 | ||||||||
| The new login | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to add a comment to a discussion.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the discussion to comment on | String | */* | UTF-8 | ||||||||
| The text of the comment to be posted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to add a comment by the user to a specific file
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file to be commented on | String | */* | UTF-8 | ||||||||
| Text of the comment to be posted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to create a copy of a file in another folder. The original version of the file will not be altered.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The if of the target folder. Defaults to the root folder | String | */* | UTF-8 | |||||||
| The id of the file you want to copy | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to create a shared link for this particular folder
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the parent folder that will hold the copy. If not provided then the root will be used | String | */* | UTF-8 | |||||||
| The if od the folder being copied | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to add a collaboration for a single user to a folder. Either an email address or a user ID can be used to create the collaboration. Transferring ownership: To transfer ownership of a folder (as the current owner of the folder), first create a collaboration for the new user with any role. Then update that collaboration with a role of ‘owner’.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. Object representing the collaboration to be created | Collaboration | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Collaboration | a new instance of Collaboration with the state of the newly created collab
|
Used to create the metadata for a new discussion for a particular folder. The parent, id and name attributes of the request object are required
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. The discussion object to be created | Discussion | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Discussion | an instance of Discussion with the metadata of the created discussion
|
Adds a new email alias to the given user’s account.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user getting the alias | String | */* | UTF-8 | ||||||||
| The new email alias | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| EmailAlias | an instance of EmailAlias
|
Creates a new folder and returns a folder object with all its associated information
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the parent folder. If not provided then the root will be used | String | */* | UTF-8 | |||||||
| The name of the folder | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to provision a new user in an enterprise. This method only works for enterprise admins.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. An instance of User representing the user to be created |
User | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to delete a single collaboration.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the collaboration to be deleted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Delets a comment.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the comment to be deleted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Removes an email alias from a user.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user owning the alias | String | */* | UTF-8 | ||||||||
| The id of the alias being deleted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Discards a file to the trash. The etag of the file can be included as an ‘If-Match’ header to prevent race conditions. Depending on the enterprise settings for this user, the item will either be actually deleted from Box or moved to the trash.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file to be deleted | String | */* | UTF-8 | ||||||||
| Optional. If provided, it will be used to verify that no newer version of the file is available at box | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Deletes a folder
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder to be deleted | String | */* | UTF-8 | ||||||||
| true | Optional. Whether to delete this folder if it has items inside of it | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Deletes a user in an enterprise account.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user being delete | String | */* | UTF-8 | ||||||||
| true | Optional. Determines if the destination user should receive email notification of the transfer. | Boolean | */* | ||||||||
| false | Optional. Whether or not the user should be deleted even if this user still own files. | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Downloads a file
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file you want | String | */* | UTF-8 | ||||||||
| Optional. The ID specific version of this file to download. | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| InputStream | an input stream with the contents of the file |
Used to get information about a single collaboration.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the collaboration you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Collaboration | an instance of Collaboration
|
Used to retrieve the message and metadata about a specific comment. Information about the user who created the comment is also included.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the comment you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to retrieve the metadata about a specific discussion. Information about the user who created the discussion is also included.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the discussion you wnat | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Discussion | an instance of Discussion with the discussion metadata
|
Used to retrieve all comments for a given discussion.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the discussions which comments you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetCommentsResponse | an instance of GetCommentsResponse
|
Retrieves all email aliases for this user. The collection of email aliases does not include the primary login for the user
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user whose aliases you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetEmailAliasResponse | an instance of GetEmailAliasResponse
|
Retrieves events for all users in an enterprise. Upper and lower bounds as well as filters can be applied to the results.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Optional. A lower bound on the timestamp of the events returned | String | */* | UTF-8 | ||||||||
| Optional. An upper bound on the timestamp of the events returned | String | */* | UTF-8 | ||||||||
| 100 | Optional. Limits the number of events returned | Long | */* | ||||||||
| 0 | Optional. The item at which to start | Long | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. List of events to filter by | List<String> |
| Return Type | Description |
|---|---|
| GetEventsResponse | an instance of GetEventsResponse
|
Use this to get events for a given user. A chunk of event objects is returned for the user based on the parameters passed in. Parameters indicating how many chunks are left as well as the next streamPosition are also returned.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The location in the event stream at which you want to start receiving events. Can specify special case ‘now’ to get 0 events and the latest stream position for initialization. | String | */* | UTF-8 | ||||||||
| all | Optional. Limits the type of events returned | StreamType | */* | ||||||||
| 100 | Optional. Limits the number of events returned | Long | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetEventsResponse | an instance of GetEventsResponse
|
Requests access to a long polling server that notifies about events in real time. This is just a request for connection details. A subscription to such topic is not made
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| LongPollingServer | an instance of LongPollingServer
|
Retrieves the comments on a particular file, if any exist.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the while which comments you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetCommentsResponse | an instance of GetCommentsResponse
|
Used to retrieve the metadata about a file.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file you want to inspect | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Retrieves a thumbnail, or smaller image representation, of this file. Sizes of 32x32, 64x64, 128x128, and 256x256 can be returned. Currently thumbnails are only available in .png format and will only be generated for image file formats.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file which thumb you want | String | */* | UTF-8 | ||||||||
| Optional. The minimum size you're interested in | ThumbnailSize | */* | |||||||||
| Optional. The maximum size you're interested in | ThumbnailSize | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| InputStream | an InputStream with the content of the thumb. Remember to close it! |
Retrieves information about a given folder. If the folderId parameter is not provided or equals 0, then the root folder will be returned.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the fodler you want to get. 0 means root | String | */* | UTF-8 | |||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Returns the folder information for a given path
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The resource to retrieve from Box | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Retrieves the discussions on a particular folder, if any exist.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder which discussions you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Traverses a given folder looking for a resource (file or folder) of a given name.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the folder you want to inspect. If not provided then the root folder is assumed | String | */* | UTF-8 | |||||||
| The name you want to test | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Retrieves the files and/or folders contained within this folder without any other metadata about the folder in the mini format is returned for each item by default. Paginated results can be retrieved using the limit and offset parameters.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the folder you want to inspect. If not provided then the root folder is assumed | String | */* | UTF-8 | |||||||
| 100 | Optional. The maximum amount of items to be returned (default=100, max=1000) | Long | */* | ||||||||
| 0 | Optional. Pagination offset (default=0) | Long | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetItemsResponse | an instance of GetItemsResponse
|
Returns the item information for a given path.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The resource to retrieve from Box | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to retrieve all pending collaboration invites for this user.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetCollaborationsResponse | an instance of GetCollaborationsResponse
|
Retrieves the metadata of a trashed file
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the trashed file you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Retrieves a folder that has been moved to the trash.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder you want | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Get the folders in the Trash. Retrieves the files and/or folders that have been moved to the trash using the mini format. Paginated results can be retrieved using the limit and offset parameters.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 100 | Optional. The maximum amount of items to be returned (default=100, max=1000) | Long | */* | ||||||||
| 0 | Optional. Pagination offset (default=0) | Long | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetItemsResponse | an instance of GetItemsResponse
|
Retrieves information about the user who is currently logged in i.e. the user for whom this auth token was generated.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Returns a list of all users for the Enterprise
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Optional. A string used to filter the results to only users starting with the filter_term in either the name or the login | String | */* | UTF-8 | ||||||||
| Optional. The number of records to return. | Long | */* | |||||||||
| Optional. The record at which to start | Long | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| GetUsersResponse | an instance of GetUsersResponse
|
If there are previous versions of this file, this method can be used to retrieve metadata about the older versions. Alert: Versions are only tracked for Box users with premium accounts.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file which versions you want to pull | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| FileVersionResponse | an instance of FileVersionResponse with the metadata about the versions
|
Moves all of the content from within one user’s folder into a new folder in another user’s account. You can move folders across users as long as the you have administrative permissions. To move everything from the root folder, use 0 (zero) which always represents the root folder of a Box account
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[paylaod] | Optional. An instance of User representing the user that will receive the folder |
User | */* | ||||||||
| 0 | Optional. The id of the folder to be moved | String | */* | UTF-8 | |||||||
| true | Optional. Determines if the destination user should receive email notification of the transfer. | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Permanently deletes an item that is in the trash. The item will no longer exist in Box. This action cannot be undone.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file to be permanently deleted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Permanently deletes an item that is in the trash. The item will no longer exist in Box. This action cannot be undone.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder to be permanently deleted | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Restores a file that has been moved to the trash. Default behavior is to restore the item to the folder it was in before it was moved to the trash. If that parent folder no longer exists or if there is now an item with the same name in that parent folder, the new parent folder and/or new name will need to be included in the request.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the trashed file being restored | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. An instance of RestoreTrashedItemRequest with the request parameters |
RestoreTrashedItemRequest | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Restores an item that has been moved to the trash. Default behavior is to restore the item to the folder it was in before it was moved to the trash. If that parent folder no longer exists or if there is now an item with the same name in that parent folder, the new parent folder and/or new name will need to be included in the request.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the trashed folder being restored | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. An instance of RestoreTrashedItemRequest with the request parameters |
RestoreTrashedItemRequest | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
The search endpoint provides a simple way of finding items that are accessible in a given user’s Box account.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The string to search for; can be matched against item names, descriptions, text content of a file, and other fields of the different item types. | String | */* | UTF-8 | ||||||||
| 30 | Optional. Number of search results to return | Long | */* | ||||||||
| 0 | Optional. The search result at which to start the response | Long | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| SearchResponse | an instance of SearchResponse
|
Used to create a shared link for this particular file.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file you want to share | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. An instance of SharedLink with the information about the share |
SharedLink | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to create a shared link for this particular folder
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder you want to share | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. An instance of SharedLink with the information about the share |
SharedLink | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Deletes the shared link associated to a file
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file you want to unshare | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Deletes the shared link associated to a folder
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the folder you want to unshare | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to update an existing collaboration.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. Object holding the new state for the collaboration | Collaboration | */* | ||||||||
| The id of the collaboration to be updated | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Collaboration | a new instance of Collaboration with the state of the collab
|
Used to update the message of the comment.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the comment to be updated | String | */* | UTF-8 | ||||||||
| The new message | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to update the metadata for an existing discussion.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. Discussion object carrying the new state | Discussion | */* | ||||||||
| The id of the discussion to be updated | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| Discussion | a new instance of Discussion carrying the updated state
|
Update a file’s information. Used to update individual or multiple fields in the file object, including renaming the file, changing it’s description, and creating a shared link for the file. To move a file, change the ID of its parent folder. An optional etag can be provided to ensure that client only updates the file if it knows about the latest version
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the file which metadata you want to update | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. An instance of UpdateItemRequest carrying the update parameters |
UpdateItemRequest | */* | ||||||||
| Optional. If provided, it will be used to verify that no newer version of the file is available at box | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to update information about the folder. To move a folder, update the ID of its parent. To enable an email address that can be used to upload files to this folder, update the folderUploadEmail attribute. An optional If-Match header can be included to ensure that client only updates the folder if it knows about the latest version by setting the etag attribute.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. An instance of UpdateItemRequest with the attributes you want to change |
UpdateItemRequest | */* | ||||||||
| The id of the folder to be modified | String | */* | UTF-8 | ||||||||
| Optional. If provided, it will be used to verify that no newer version of the file is available at box | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Used to edit the settings and information about a user. This method only works for enterprise admins. To roll a user out of the enterprise (and convert them to a standalone free user), update the special enterprise attribute to be null
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The id of the user you want to update | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. The user object with the updated state | User | */* | ||||||||
| true | Optional. Whether the user should receive an email when they are rolled out of an enterprise | Boolean | */* | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Uploads a new version of a file by reading the contents from a path in local storage
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The path of the file in local storage | String | */* | UTF-8 | ||||||||
| The id of the file to be updated | String | */* | UTF-8 | ||||||||
| New name for the file | String | */* | UTF-8 | ||||||||
| Optional. If provided, it will be used to verify that no newer version of the file is available at box | String | */* | UTF-8 | ||||||||
| Optional. The time this file was modified on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Uploads a new version of a file from an input stream
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. A java.io.InputStream with the contents of the file. This stream will leave this processor in a closed state | InputStream | */* | ||||||||
| The id of the file to be updated | String | */* | UTF-8 | ||||||||
| Optional. If provided, it will be used to verify that no newer version of the file is available at box | String | */* | UTF-8 | ||||||||
| New name for the file | String | */* | UTF-8 | ||||||||
| Optional. The time this file was modified on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Receives the path of a file in local storage and uploads its content
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The path of the file in local storage | String | */* | UTF-8 | ||||||||
| 0 | Optional. The id of the target folder. | String | */* | UTF-8 | |||||||
| The name you want the file to have at box. If not provided, the name on current storage will be used | String | */* | UTF-8 | ||||||||
| false | Optional. If true a sha1 hash of the file will be calculated prior to upload. Box will use that hash to verify that the content's hasn't been corrupted. | boolean | */* | ||||||||
| Optional. The time this file was created on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| Optional. The time this file was modified on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Creates a new file with the contents of a java.io.InputStream. You need to take in count that since this is a stream, using the option of including a verification hash will cause the contents of the input stream to be fully read and loaded in memory.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| 0 | Optional. The id of the target folder. | String | */* | UTF-8 | |||||||
| The name you want the file to have at box. | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. A java.io.InputStream with the contents of the file. This stream will leave this processor in a closed state | InputStream | */* | ||||||||
| false | Optional. If true a sha1 hash of the file will be calculated prior to upload. Box will use that hash to verify that the content's hasn't been corrupted. | boolean | */* | ||||||||
| Optional. The time this file was created on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| Optional. The time this file was modified on the user’s machine. An example of a valid date is 2012-12-12T10:55:30-08:00 | String | */* | UTF-8 | ||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
Message source that subscribes to the events long polling server and will trigger a new message each time an event is generated. Such message will have an instance of @{link org.mule.modules.box.model.PollingEvent} as payload and an inbound property called 'boxAccessTokenId' that will carry the accessTokenId of the user that owns the event. This source will not provide the events that are generated, it's just a notification that there're new events available. You'll need to use the get-events processor to actually get them. Managing the stream position while doing so is up to you.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Callback to be invoked when a message arribes | SourceCallback | */* | |||||||||
| OAuth Parameters The following values are always required when using OAuth as the authentication mechanism. | |||||||||||
| Access token identifier used to retrieve an access token from the store | |||||||||||
| Return Type | Description |
|---|---|
| StopSourceCallback | an instance of org.mule.api.callback.StopSourceCallback that unsubscribes the long polling server when the app is stopped. |