Update Private Registry

Update Private Registry

Updates the name, description and/or credentials of a private registry. The id of the organization is fetched from CSP token

Request
URI
PATCH
https://{api_host}/v1/registries/{registry_id}
COPY
Path Parameters
registry_id
Required

A string as the identifier of a registry


Request Body

It contains details about the registry updated

UpdatePrivateRegistryRequest of type(s) application/json
Required
"UpdatePrivateRegistryRequest Object"
string
name
Optional

Name of the registry

string
description
Optional

Description of the registry

string
access_key
Optional

Access key to authenticate to the registry. For some providers it may be optional (e.g GOOGLE_ARTIFACT_REGISTRY)

string
access_secret
Optional

Access secret to authenticate to the registry

Authentication
This operation uses the following authentication methods.
Responses
204

The registry has been updated

Operation doesn't return any data structure

400

An error related to the request

Returns ConstraintsViolationsError of type(s) application/problem+json
This response body class contains all of the following: InlineConstraintsViolationsError0
"ConstraintsViolationsError Object"
array of object
violations
Required

It represents a constraints violation error


403

The requesting user is not authorized to update the registry

Returns Error403 of type(s) application/problem+json
This response body class contains all of the following: InlineError4030
"Error403 Object"

404

The registry is not found

Returns Error404 of type(s) application/problem+json
This response body class contains all of the following: InlineError4040
"Error404 Object"

500

An internal server error object

Returns Error500 of type(s) application/problem+json
This response body class contains all of the following: InlineError5000
"Error500 Object"

503

The server is temporarily unavailable

Returns Error503 of type(s) application/problem+json
This response body class contains all of the following: InlineError5030
"Error503 Object"

Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]'