private-registries
Create a private registry for an organization
Creates a private registry configuration with an encrypted value for an organization. Encrypt your secret using LibSodium. For more information, see "Encrypting secrets for the REST API."
OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
post/orgs/{org}/private-registries
Path parameters
orgstring required
The organization name. The name is not case sensitive.
Request body
Response
The organization private registry configuration
Example response
{
"name": "MAVEN_REPOSITORY_SECRET",
"username": "monalisa"
}