---
updatedAt: 2026-04-05T17:23:57.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/projects/llms.txt
---

# Share Repository with All Projects

Shares a local or remote repository across all projects, allowing members in more than one project to access the repository. Project members 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.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Platform - Projects API",
    "description": "Projects APIs for the JFrog Platform.\n**Authentication:** Access Tokens as bearer token in authorization header (Authorization: Bearer `<token>`)\n**Security:** Security requirements vary per operation. See individual operation descriptions for details.\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}"
    }
  ],
  "tags": [
    {
      "name": "Repositories",
      "description": "APIs for assigning, sharing, and unsharing repositories across projects in the JFrog Platform."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/access/api/v1/projects/_/share/repositories/{repoName}": {
      "put": {
        "tags": [
          "Repositories"
        ],
        "summary": "Share Repository with All Projects",
        "description": "Shares a local or remote repository across all projects, allowing\nmembers in more than one project to access the repository. Project\nmembers are granted actions according to their roles in the target\nproject.\n\n**Note:** When you assign a resource to a project, the project owns and\nmanages the resource. When you share a resource with a project, the\nproject does not own the resource.\n\n**Security:** Requires Platform Admin privileges.\n",
        "operationId": "shareRepositoryWithAllProjects",
        "parameters": [
          {
            "name": "repoName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The repository name"
          }
        ],
        "responses": {
          "204": {
            "description": "Repository shared"
          },
          "400": {
            "description": "Bad Request - Invalid input (e.g. repository does not exist)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Bad Credentials - Invalid credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Permission Denied - Insufficient permissions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found - Repository not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access Token as bearer token"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable error code (e.g. BAD_REQUEST, UNAUTHORIZED, NOT_FOUND, CONFLICT)."
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Standard error envelope returned for all 4xx responses by the JFrog Projects API.",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```