box-node-sdk

ShuttleManager

List shuttle systems

Returns a paginated list of shuttle systems accessible to the authenticated user.

This operation is performed by calling function getShuttleSystemsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleSystemsV2026R0();

Arguments

Returns

This function returns a value of type ShuttleSystemsV2026R0.

Returns a paginated list of shuttle systems.

Create shuttle system

Creates a new shuttle system. Only Windows agent systems can be created through the public API; other system types must be configured through the Shuttle application.

This operation is performed by calling function createShuttleSystemV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleSystemV2026R0({
  name: systemName,
  systemType: 'windows' as ShuttleSystemCreateRequestV2026R0SystemTypeField,
} satisfies ShuttleSystemCreateRequestV2026R0Input);

Arguments

Returns

This function returns a value of type ShuttleSystemV2026R0.

Returns the newly created shuttle system.

Get shuttle system by ID

Returns details for a single shuttle system identified by its ID, including its type and connection state.

This operation is performed by calling function getShuttleSystemByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleSystemByIdV2026R0(createdSystem.id);

Arguments

Returns

This function returns a value of type ShuttleSystemV2026R0.

Returns the shuttle system.

Update shuttle system

Updates the mutable properties of an existing shuttle system identified by its ID. Only the fields supplied in the request body are changed.

This operation is performed by calling function updateShuttleSystemByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.updateShuttleSystemByIdV2026R0(createdSystem.id, {
  name: updatedSystemName,
} satisfies ShuttleSystemUpdateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleSystemV2026R0.

Returns the updated shuttle system.

Delete shuttle system

Permanently deletes the shuttle system identified by its ID. This does not affect content that has already been migrated.

This operation is performed by calling function deleteShuttleSystemByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.deleteShuttleSystemByIdV2026R0(createdSystem.id);

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the shuttle system was successfully deleted.

Issue registration token for Windows system

Issues a new installation token for the Windows shuttle system identified by its ID. Paste the returned token into the Windows agent installer to register the agent with this system.

This operation is performed by calling function createShuttleSystemIssueRegistrationTokenV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleSystemIssueRegistrationTokenV2026R0(
  createdSystem.id,
);

Arguments

Returns

This function returns a value of type ShuttleAgentCredentialsV2026R0.

Returns the agent installation credentials for the Windows system.

List shuttle jobs

Returns a paginated list of shuttle jobs accessible to the authenticated user.

This operation is performed by calling function getShuttleJobsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleJobsV2026R0();

Arguments

Returns

This function returns a value of type ShuttleJobsV2026R0.

Returns a paginated list of shuttle jobs.

Create shuttle job

Creates a new shuttle job that describes a migration from the given source system into Box.

This operation is performed by calling function createShuttleJobV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleJobV2026R0({
  name: getUuid(),
  jobType: 'transfer' as ShuttleJobCreateRequestV2026R0JobTypeField,
  sourceSystemId: resourceId,
} satisfies ShuttleJobCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleJobV2026R0.

Returns the newly created shuttle job.

Get shuttle job by ID

Returns details for a single shuttle job identified by its ID, including its current state, mapping-preparation state, and configured source system.

This operation is performed by calling function getShuttleJobByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleJobByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttleJobV2026R0.

Returns the shuttle job.

Update shuttle job

Updates the mutable properties of an existing shuttle job identified by its ID. Only the fields supplied in the request body are changed.

This operation is performed by calling function updateShuttleJobByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.updateShuttleJobByIdV2026R0(resourceId, {
  name: getUuid(),
} satisfies ShuttleJobUpdateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleJobV2026R0.

Returns the updated shuttle job.

Delete shuttle job

Permanently deletes the shuttle job identified by its ID. This does not affect content that has already been migrated.

This operation is performed by calling function deleteShuttleJobByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.deleteShuttleJobByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the shuttle job was successfully deleted.

Start shuttle job

Starts the job in the given mode. When no body is provided the job runs in simulation mode.

This operation is performed by calling function createShuttleJobStartV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleJobStartV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

The shuttle job was accepted and is being started.

Stop shuttle job

Stops a running shuttle job identified by its ID. Any work already in progress is allowed to finish before the job transitions to a stopped state.

This operation is performed by calling function createShuttleJobStopV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleJobStopV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

The shuttle job was accepted and is being stopped.

Prepare migration

Validates the configured account and path mappings before a transfer. Only relevant when account mapping is enabled.

This operation is performed by calling function createShuttleJobPrepareMigrationV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleJobPrepareMigrationV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

The migration preparation was accepted and is being processed.

List shuttle runs

Returns a paginated list of runs for the shuttle job identified by job_id.

This operation is performed by calling function getShuttleRunsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleRunsV2026R0({
  jobId: resourceId,
} satisfies GetShuttleRunsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleRunsV2026R0.

Returns a paginated list of shuttle runs.

Get shuttle run by ID

Returns details for a single shuttle run identified by its ID, including its mode, state, timing, and transfer statistics.

This operation is performed by calling function getShuttleRunByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleRunByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttleRunV2026R0.

Returns the shuttle run.

List shuttle job schedules

Returns a paginated list of schedules for the shuttle job identified by job_id.

This operation is performed by calling function getShuttleJobSchedulesV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleJobSchedulesV2026R0({
  jobId: resourceId,
} satisfies GetShuttleJobSchedulesV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleJobSchedulesV2026R0.

Returns a paginated list of shuttle job schedules.

Create shuttle job schedule

Creates a schedule that starts runs of the shuttle job identified by job_id. The schedule starts a run either at a wall-clock time or after another job’s run meets a condition. Schedules cannot start a run in scan mode.

This operation is performed by calling function createShuttleJobScheduleV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleJobScheduleV2026R0({
  jobId: resourceId,
  runMode: 'transfer' as ShuttleJobScheduleCreateRequestV2026R0RunModeField,
  state: 'paused' as ShuttleJobScheduleCreateRequestV2026R0StateField,
  trigger: new ShuttleJobScheduleTriggerByTimeV2026R0({
    type: 'by_time' as ShuttleJobScheduleTriggerByTimeV2026R0TypeField,
    startAt: '2030-01-01T09:00:00',
    timeZone: 'America/Los_Angeles',
    repeat: 'daily' as ShuttleJobScheduleTriggerByTimeV2026R0RepeatField,
  }),
} satisfies ShuttleJobScheduleCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleJobScheduleV2026R0.

Returns the newly created shuttle job schedule.

Get shuttle job schedule

Retrieves the shuttle job schedule identified by its ID.

This operation is performed by calling function getShuttleJobScheduleByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleJobScheduleByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttleJobScheduleV2026R0.

Returns the shuttle job schedule.

Update shuttle job schedule

Updates the mutable properties of an existing shuttle job schedule identified by its ID. Only the fields supplied in the request body are changed. The owning job cannot be changed.

This operation is performed by calling function updateShuttleJobScheduleByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.updateShuttleJobScheduleByIdV2026R0(resourceId, {
  runMode: 'simulation' as ShuttleJobScheduleUpdateRequestV2026R0RunModeField,
} satisfies ShuttleJobScheduleUpdateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleJobScheduleV2026R0.

Returns the updated shuttle job schedule.

Delete shuttle job schedule

Permanently deletes the shuttle job schedule identified by its ID. This does not affect runs that have already started.

This operation is performed by calling function deleteShuttleJobScheduleByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.deleteShuttleJobScheduleByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the shuttle job schedule was successfully deleted.

List shuttle path mappings

Returns a paginated list of path mappings for the shuttle job identified by job_id.

This operation is performed by calling function getShuttlePathMappingsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttlePathMappingsV2026R0({
  jobId: resourceId,
} satisfies GetShuttlePathMappingsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttlePathMappingsV2026R0.

Returns a paginated list of shuttle path mappings.

Create shuttle path mapping

Creates a path mapping that connects a source location on the migrated system to a destination in Box for the given shuttle job.

This operation is performed by calling function createShuttlePathMappingV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttlePathMappingV2026R0({
  jobId: resourceId,
  source: new ShuttlePathMappingAccountLocationInputV2026R0({
    type: 'account' as ShuttlePathMappingAccountLocationInputV2026R0TypeField,
    path: '/finance',
    account: {
      email: 'user@example.com',
    } satisfies ShuttlePathMappingAccountInputV2026R0,
  }),
} satisfies ShuttlePathMappingCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttlePathMappingV2026R0.

Returns the newly created shuttle path mapping.

Get shuttle path mapping by ID

Returns details for a single shuttle path mapping identified by its ID, including the source location and destination, if any.

This operation is performed by calling function getShuttlePathMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttlePathMappingByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttlePathMappingV2026R0.

Returns the shuttle path mapping.

Update shuttle path mapping

Updates the mutable properties of an existing shuttle path mapping identified by its ID. Only the fields supplied in the request body are changed.

This operation is performed by calling function updateShuttlePathMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.updateShuttlePathMappingByIdV2026R0(resourceId, {
  isPathSkipped: true,
} satisfies ShuttlePathMappingUpdateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttlePathMappingV2026R0.

Returns the updated shuttle path mapping.

Delete shuttle path mapping

Permanently deletes the shuttle path mapping identified by its ID. This does not affect content that has already been migrated.

This operation is performed by calling function deleteShuttlePathMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.deleteShuttlePathMappingByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the shuttle path mapping was successfully deleted.

Create shuttle path mapping import

Accepts a spreadsheet of path mappings, already stored in Box, and replaces the job’s path mappings. A file that is not a mapping workbook, or that exceeds the size or row limits (10 MiB Box download limit; 100,000 mapping rows), returns 400 synchronously and leaves the job unchanged. An accepted import always replaces every path mapping on the job. When all rows are valid the workbook is deployed in full. When any row is invalid the job ends with no path mappings and mapping_state becomes paths_import_rejected until the next import or the next manual path-mapping change. Row problems are listed by GET /shuttle_mapping_errors?job_id=… with category path_import, messages of the form Row N: …, at most 500 entries plus one overflow entry. Validation and deployment are asynchronous after acceptance. Poll GET /shuttle_jobs/{shuttle_job_id} while mapping_state is importing_paths. Only one import may be in flight per job.

This operation is performed by calling function createShuttlePathMappingImportV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttlePathMappingImportV2026R0({
  jobId: resourceId,
  fileId: resourceId,
} satisfies ShuttlePathMappingImportCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type undefined.

The import was accepted. Validation and deployment continue asynchronously. Poll GET /shuttle_jobs/{shuttle_job_id} until mapping_state is no longer importing_paths. A rejected import ends with mapping_state paths_import_rejected and an empty path-mapping list; a successful import moves on to a later mapping-preparation state such as paths_ready or ready.

Create shuttle subject mapping import

Accepts a spreadsheet of subject (user and group) mappings, already stored in Box, and replaces the job’s subject mappings. A file that is not a subject-mapping workbook, or that exceeds the size or row limits (10 MiB Box download limit; 50,000 mapping rows), returns 400 synchronously and leaves the job unchanged. An accepted import always replaces every subject mapping on the job. When all rows are valid the workbook is deployed in full. When any row is invalid the job ends with no subject mappings and mapping_state becomes subjects_import_rejected until the next import or the next manual subject-mapping change. Row problems are listed by GET /shuttle_mapping_errors?job_id=… with category subject_import, messages of the form Row N: …, at most 500 entries plus one overflow entry. Validation and deployment are asynchronous after acceptance. Poll GET /shuttle_jobs/{shuttle_job_id} while mapping_state is importing_subjects. Only one import may be in flight per job. The job must map subjects (account_mapping enabled) and its source scan must be finished; otherwise the request returns 409.

Expected workbook format (API clients cannot download the UI template): sheets Users and/or Groups (a sheet named Subjects is also accepted). Columns are Source User <Key>, Target User <Key>, Skip on Users, and Source Group <Key>, Target Group <Key>, Skip on Groups, where <Key> is the primary identifier for that role and system:

This operation is performed by calling function createShuttleSubjectMappingImportV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleSubjectMappingImportV2026R0({
  jobId: resourceId,
  fileId: resourceId,
} satisfies ShuttleSubjectMappingImportCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type undefined.

The import was accepted. Validation and deployment continue asynchronously. Poll GET /shuttle_jobs/{shuttle_job_id} until mapping_state is no longer importing_subjects. A rejected import ends with mapping_state subjects_import_rejected and an empty subject-mapping list; a successful import moves on to a later mapping-preparation state such as mapping_complete or ready.

List shuttle subject mappings

Returns a paginated list of subject mappings for the shuttle job identified by job_id.

This operation is performed by calling function getShuttleSubjectMappingsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleSubjectMappingsV2026R0({
  jobId: resourceId,
} satisfies GetShuttleSubjectMappingsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleSubjectMappingsV2026R0.

Returns a paginated list of shuttle subject mappings.

Create shuttle subject mapping

Creates a subject mapping that connects a discovered source subject to a Box user or group for the given shuttle job.

This operation is performed by calling function createShuttleSubjectMappingV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleSubjectMappingV2026R0({
  jobId: resourceId,
  discoveredSubjectId: resourceId,
} satisfies ShuttleSubjectMappingCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleSubjectMappingV2026R0.

Returns the newly created shuttle subject mapping.

Get shuttle subject mapping by ID

Returns details for a single shuttle subject mapping identified by its ID, including the source subject and Box target, if any.

This operation is performed by calling function getShuttleSubjectMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleSubjectMappingByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttleSubjectMappingV2026R0.

Returns the shuttle subject mapping.

Update shuttle subject mapping

Updates the mutable properties of an existing shuttle subject mapping identified by its ID. Only the fields supplied in the request body are changed.

This operation is performed by calling function updateShuttleSubjectMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.updateShuttleSubjectMappingByIdV2026R0(resourceId, {
  isSubjectSkipped: true,
} satisfies ShuttleSubjectMappingUpdateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleSubjectMappingV2026R0.

Returns the updated shuttle subject mapping.

Delete shuttle subject mapping

Permanently deletes the shuttle subject mapping identified by its ID.

This operation is performed by calling function deleteShuttleSubjectMappingByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.deleteShuttleSubjectMappingByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type undefined.

Returns an empty response when the shuttle subject mapping was successfully deleted.

List shuttle discovered subjects

Returns a paginated list of subjects discovered on the source system for the shuttle job identified by job_id.

This operation is performed by calling function getShuttleDiscoveredSubjectsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleDiscoveredSubjectsV2026R0({
  jobId: resourceId,
} satisfies GetShuttleDiscoveredSubjectsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleDiscoveredSubjectsV2026R0.

Returns a paginated list of discovered subjects.

List shuttle path entries

Returns a paginated list of source or target path entries for a shuttle job. Call with only job_id and side to list the roots, then browse one level at a time using path, path_id, or both. Each entry includes path, path_id, is_directory, and a scope object (account or shared_space) so a mapping can be created from that row without extra browse state. Valid values depend on the selected system.

This operation is performed by calling function getShuttlePathEntriesV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttlePathEntriesV2026R0({
  jobId: resourceId,
  side: 'source' as GetShuttlePathEntriesV2026R0QueryParamsSideField,
} satisfies GetShuttlePathEntriesV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttlePathEntriesV2026R0.

Returns a paginated list of shuttle path entries.

List shuttle mapping errors

Returns a paginated list of mapping errors for a shuttle job. Only the latest record for each error is returned. The revision field identifies the mapping revision in which that error was generated.

This operation is performed by calling function getShuttleMappingErrorsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleMappingErrorsV2026R0({
  jobId: resourceId,
} satisfies GetShuttleMappingErrorsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleMappingErrorsV2026R0.

Returns a paginated list of shuttle mapping errors.

List shuttle reports

Returns a paginated list of reports generated for the shuttle run identified by run_id.

This operation is performed by calling function getShuttleReportsV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleReportsV2026R0({
  runId: resourceId,
} satisfies GetShuttleReportsV2026R0QueryParams);

Arguments

Returns

This function returns a value of type ShuttleReportsV2026R0.

Returns a paginated list of shuttle reports.

Create shuttle report

Requests asynchronous generation of a report for a shuttle run. The report is returned immediately in pending or processing status. Poll GET /shuttle_reports/{shuttle_report_id} while status is pending or processing. Stop when status is complete, failed, canceled, or unknown. Repeating this request with the same parameters reuses the existing report instead of creating a duplicate.

This operation is performed by calling function createShuttleReportV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.createShuttleReportV2026R0({
  runId: resourceId,
  format: 'csv' as ShuttleReportCreateRequestV2026R0FormatField,
  sections: ['summary'],
} satisfies ShuttleReportCreateRequestV2026R0);

Arguments

Returns

This function returns a value of type ShuttleReportV2026R0.

The report was accepted for generation. Returns the shuttle report; generation continues asynchronously. Repeating this request with the same parameters reuses the existing report instead of creating a duplicate.

Get shuttle report by ID

Returns details for a single shuttle report identified by its ID, including generation status and, once generation finishes, the Box output reference.

This operation is performed by calling function getShuttleReportByIdV2026R0.

See the endpoint docs at API Reference.

await client.shuttle.getShuttleReportByIdV2026R0(resourceId);

Arguments

Returns

This function returns a value of type ShuttleReportV2026R0.

Returns the shuttle report.