Share Repository with Target Project

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Shares a local or remote repository with a specific target Project. Project Members of the target project are granted actions to the shared repository according to their Roles and Role actions assigned 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.

Since: 7.15.3

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

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

Name

Description

repo_name *

string

(path)

The repository name

target_project_key *

(path)

The Project Key

Sample Request: Header parameter: Authorization: Bearer

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

Sample Response:

Shared