Skip to content

Add or change a login to a private image registry (owners)

PUT
/registries/{host}
curl --request PUT \
--url https://api.global.stillbox.example/v1/registries/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "username": "example", "password": "example" }'

Sandboxes whose image is on this registry are pulled with it. The password is kept encrypted, used only by the server that downloads the image, and never enters a sandbox.

host
required
string

The registry, as in image names (docker.io, ghcr.io, registry.example.com:5000)

Media typeapplication/json
object
username
required
string
password
required

A password or access token; a read-only token is enough

string

Example generated

{
"username": "example",
"password": "example"
}

Saved

Media typeapplication/json
object
host
required
string
username
required
string
hint
required

The password’s last characters

string
updated_at
required
string format: date-time

Example generated

{
"host": "example",
"username": "example",
"hint": "example",
"updated_at": "2026-04-15T12:00:00Z"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}