POST/v1/repository

Updates a repository

Requires permission SYSTEM_CONFIGURATION or SYSTEM_CONFIGURATION_UPDATE

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

7 body fields
authenticationRequiredbooleanrequired
Whether the repository requires authentication
enabledbooleanrequired
Whether the repository is enabled
internalbooleanoptional
Whether the repository is internal to the organization
passwordstringoptional
Name of the secret holding the password or token
urlstringrequired
URL of the repository
usernamestringoptional
Username to authenticate with
uuidstringrequired
UUID of the repository to update

3 status codes
200The updated 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
404The UUID of the repository could not be found

Error handling

A 401 is returned: Unauthorized. A 404 is returned: The UUID of the repository could not be found.