Bundle Actions

A BundleAction is an action performed on a bundle. Provides detailed information about the action's type, involved paths and other information.

List Bundle Actions

SDK Function

BundleAction.list()

Return Object

ListIterator<BundleAction>

Authorization Requirement

Available to all authenticated keys or sessions.

Function Arguments

ArgumentDescription
user_id
int64
User ID. Provide a value of 0 to operate the current session's user.
bundle_id
int64
Bundle ID
bundle_registration_id
int64
Bundle Registration ID

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.BundleAction;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("user_id", 1);
  
  ListIterator<BundleAction> bundleActions = BundleAction.list(parameters);
  for (BundleAction bundleAction : bundleActions.listAutoPaging()) {
    // Operate on bundleAction
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The BundleAction Object

Some of the functions above return a BundleAction object. The attributes of this object are listed below.

AttributeDescription
action
string
Type of action
Possible values: create, read, update, destroy, move, copy, registration
bundle_registration
BundleRegistration
Object that contains bundle registration information
created_at
date-time
Action occurrence date/time
destination
string
The destination path for this bundle action, if applicable
path
string
Path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
source
string
The source path for this bundle action, if applicable
bundle_registration_id
int64
Identifier of the associated bundle registration
workspace_id
int64
Workspace ID. 0 means the default workspace.
bundle_registration_name
string
Name of the registrant who performed the action
bundle_registration_email
string
Email of the registrant
bundle_registration_ip
string
IP address of the registrant
form_field_set_id
int64
Id of associated form field set
form_field_data
object
Data for form field set with form field ids as keys and user data as values