v1
latestOpenAPI 3.1.02026-07-24261240.7 KBRepositories
Share Repository with Target Project
Shares a local or remote repository with a specific target project. Project members of the target project are granted actions according to their roles in the target 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/_/share/repositories/{repoName}/{targetProjectKey}
Path parameters
repoNamestring required
The repository name
targetProjectKeystring required
The target project key
Query parameters
readOnlyboolean
When set to true, the target project has read-only access to the repository and cannot modify its content.
Response
Repository shared