cURL
curl --request PATCH \ --url https://api.example.com/api/v1/repositories/{repo_name}/visibility \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "is_public": true } '
{ "error": "<string>", "success": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Repository name
Request body for PATCH /api/v1/repositories/{repo_name}/visibility
Whether the repository should be publicly visible
Visibility updated