Copy Item



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/

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": "error",
             "message": "The repository has denied...."