Move Repository in a Project

JFrog REST APIs

ft:sourceType
Paligo

Description: Moves the project repository to the specified location.

Since: 7.17.4

Security: Requires a user assigned with the 'Administer the Platform' role.

Usage: PUT /v1/projects/_/attach/repositories/{repo_name}/{target_project_key}?force=true/false

Produces: application/json

Parameters :

Name

Description

target_project_key *

string

(path)

The project key

repo_name *

(path)

The repository name

force

(query)

Indicates a force move if the repo_name is already assigned to an actual project

Header parameter: Authorization: Bearer

Sample Request

curl --location --request PUT '${baseUrl}/access/api/v1/projects/_/attach/repositories/{repo_name}/{target_project_key}?force=true/false' \
--header 'Authorization: Bearer <a valid access-token>'

Sample Response

Moved