How to mark a enterprise repository as internal using GitHub rest API? #58073
-
Select Topic AreaQuestion BodyHi, I am working with organization repositories (GitHub Enterprise) and want to mark repos as internal using API. I know there is a I have repos created as private and I want to convert them to internal using rest APIs. Let's say the organization name is I will be using a GitHub App with admin permissions on the organization to perform the REST API calls. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
To mark an enterprise repository as internal using the GitHub REST API, you can follow these steps:
With curl: |
Beta Was this translation helpful? Give feedback.
To mark an enterprise repository as internal using the GitHub REST API, you can follow these steps:
PATCH https://api.github.com/repos/ENTERPRISE_NAME/REPO_OWNER/REPO_NAME{ "visibility": "internal" }