Share Repository with All Projects

JFrog REST APIs

ft:sourceType
Paligo

Description: Shares a local or remote repository across all the Projects allowing members in more than one Project to have access to the repository. Project Members are granted actions to the shared repository according to their Roles and Role actions assigned in the target Project.

Since: 7.15.3

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

Usage: PUT /v1/projects/_/share/repositories/{repo_name}

Parameters:

Name

Description

repo_name *

string

(path)

The repository name

Header parameter: Authorization: Bearer

Sample Request:

curl -X PUT "${baseUrl}/access/api/v1/projects/_/share/repositories/${repo_name}" -H "accept: application/json -H 'Authorization: Bearer <a valid access-token>"

Sample Response:

Shared