Skip to main content
PUT
Set registry credentials

Authorizations

Authorization
string
header
required

An admin API key. Personal admin keys reach the API key, billing and Account endpoints for the creator's personal account; the other endpoints need an organization admin key. Security requirement entries list the permission a scoped key needs for the operation.

Scopes

registry-credentials.write

Path Parameters

registry
enum<string>
required

Registry type. The PUT body for ghcr and dockerhub is {username, token}; gcr is {key}; ecr is {host, access_key_id, secret_access_key}; custom is {host, username, token}.

Available options:
ghcr,
gcr,
dockerhub,
ecr,
custom

Body

application/json
username
string
required
token
string
required

Response

The credentials were stored.

message
string
required