Skip to content

Copy

//trimblecloud-fileservice/trimblecloud.fileservice/FoldersAPI/copy

copy

[JVM]
abstract fun copy(@NonNullspaceId: @NonNullUUID, @NonNullfolderId: @NonNullUUID, @NonNulltargetParentId: @NonNullUUID): CompletableFuture<Response<FolderJobResponse>>

Copy a folder to a new location within the same space.

Return

  • A future that resolves to the job response.

Parameters

JVM

spaceId- The space id.
folderId- The folder id to copy.
targetParentId- The target parent id.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun copy(@NonNullspaceId: @NonNullUUID, @NonNullfolderId: @NonNullUUID, @NonNulltargetParentId: @NonNullUUID, @NonNullparams: @NonNullCopyFolderParams): CompletableFuture<Response<FolderJobResponse>>

Copy a folder to a new location within the same space.

Return

  • A future that resolves to the job response.

Parameters

JVM

spaceId- The space id.
folderId- The folder id to copy.
targetParentId- The target parent id.
params- The parameters to the copy operation.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun copy(@NonNullrequest: @NonNullCopyFolderRequest): CompletableFuture<Response<FolderJobResponse>>

Copy a folder to a new location within the same space.

Return

  • A future that resolves to the job response.

Parameters

JVM

request- The request to copy the folder.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.

[JVM]
abstract fun copy(@NonNullrequest: @NonNullCopyFolderRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<FolderJobResponse>>

Copy a folder to a new location within the same space.

Return

  • A future that resolves to the job response.

Parameters

JVM

request- The request to copy the folder.
requestHeader- The request header containing additional information.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.