v1

latestOpenAPI 3.1.02026-07-24261240.7 KB
Repositories

Move Repository in a Project

If not assigned, assigns a repository to a project. If already assigned, moves the project repository to the specified location, and unassigns the repository from the previous project.

Note: When you assign a resource to a project, the project owns and manages the resource. When you share a resource with a project, the project does not own the resource.

Security: Requires Platform Admin privileges.

put/access/api/v1/projects/_/attach/repositories/{repoName}/{targetProjectKey}

Path parameters

repoNamestring required

The repository name

targetProjectKeystring required

The target project key

Query parameters

forceboolean

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

Response

Repository attached