v3 repository visibility parameter issues

NOTE: A token has been created with the correct scopes.

Creating a repository with the “visibility” parameter set will yield the following error:

403 You need admin access to the organization before adding a repository to it.

Creating a repository without the “visibility” parameter and then subsequently patching it with the parameter will yield the expected result.

If the same patch is applied, the following error is returned:

Visibility is already internal. or  Visibility is already private.