Description: Copy an artifact or a folder to the specified destination. Supported for local, remote and Federated repositories only.
Optionally suppress cross-layout module path translation during copy.
You can test the copy using a dry run.
Copy item behaves similarly to a standard file system and supports renames. If the target path does not exist, the source item is copied and optionally renamed. Otherwise, if the target exists and it is a directory,
the source is copied and placed under the target directory.
Notes: Requires Artifactory Pro
Security: Requires a privileged user (can be anonymous)
Usage: POST /api/copy/{srcRepoKey}/{srcFilePath}?to=/{targetRepoKey}/{targetFilePath}[&dry=1][&suppressLayouts=0/1(default)][&failFast=0/1]
Produces: application/json (application/vnd.org.jfrog.artifactory.storage.CopyOrMoveResult+json)
Since: 2.2.2
Sample Output:
POST /api/copy/libs-release-local/org/acme?to=/ext-releases-local/org/acme-new&dry=1 { "messages": [ { "level": "INFO", "message": "copying olegk-debian-local:nginx_1.22.0-3.1_all.deb to testdeb:nginx_1.22.0-3.1_all.deb completed successfully, 1 artifacts and 0 folders were copied" } ] }