Move Item

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Moves an artifact or a folder to the specified destination. Supported by local repositories only.

Optionally suppress cross-layout module path translation during move.

You can test the move using dry run.

Move item behaves similarly to a standard file system and supports renames. If the target path does not exist, the source item is moved and optionally renamed. Otherwise, if the target exists and it is a directory,

the source is moved and placed under the target directory.

Notes: Requires Artifactory Pro

Security: Requires a privileged user (can be anonymous)

Usage: POST /api/move/{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/move/libs-release-local/org/acme?to=/ext-releases-local/org/acme-new&dry=1

{
    "messages": [
        {
            "level": "INFO",
            "message": "moving 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 moved"
        }
    ]
}