PUT/v1/repository

Creates a new repository

Requires permission SYSTEM_CONFIGURATION or SYSTEM_CONFIGURATION_CREATE

8 body fields
authenticationRequiredbooleanrequired
Whether the repository requires authentication
enabledbooleanrequired
Whether the repository is enabled
identifierstringrequired
Unique identifier of the repository within its type
internalbooleanoptional
Whether the repository is internal to the organization
passwordstringoptional
Name of the secret holding the password or token
typestringrequired
Type of the repository
Allowed:MAVENNPMGEMPYPINUGETHEXCOMPOSERCARGOGO_MODULESCPANGITHUBHACKAGE
urlstringrequired
URL of the repository
usernamestringoptional
Username to authenticate with

3 status codes
201The created repository
authenticationRequiredbooleanrequired
Whether the repository requires authentication
enabledbooleanrequired
Whether the repository is enabled
identifierstringrequired
Unique identifier of the repository within its type
internalbooleanoptional
Whether the repository is internal to the organization
passwordstringoptional
Name of the secret holding the password or token
resolutionOrderintegerrequired
Order in which the repository is queried during version resolution
typestringrequired
Type of the repository
Allowed:MAVENNPMGEMPYPINUGETHEXCOMPOSERCARGOGO_MODULESCPANGITHUBHACKAGE
urlstringrequired
URL of the repository
usernamestringoptional
Username to authenticate with
uuidstringrequired
UUID of the repository
401Unauthorized
409A repository with the specified identifier already exists

Error handling

A 401 is returned: Unauthorized. A 409 is returned: A repository with the specified identifier already exists.