Skip to content

Copy

//trimblecloud-fileservice/trimblecloud.fileservice/FilesAPI/copy

copy

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

Copies a file from one folder to another within the given space.

Return

  • A future that resolves to the file job response.

Parameters

JVM

spaceId- The space id.
fileId- The file id.
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, @NonNullfileId: @NonNullUUID, @NonNulltargetParentId: @NonNullUUID, @NonNullparams: @NonNullCopyFileParams): CompletableFuture<Response<FileJobResponse>>

Copies a file from one folder to another within the given space.

Return

  • A future that resolves to the file job response.

Parameters

JVM

spaceId- The space id.
fileId- The file id.
targetParentId- The target parent id.
params- The parameters for 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: @NonNullCopyFileRequest): CompletableFuture<Response<FileJobResponse>>

Copies a file from one folder to another within the given space.

Return

  • A future that resolves to the file job response.

Parameters

JVM

request- The request to copy a file.

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: @NonNullCopyFileRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<FileJobResponse>>

Copies a file from one folder to another within the given space.

Return

  • A future that resolves to the file job response.

Parameters

JVM

request- The request to copy a file.
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.