Add or change a login to a private image registry (owners)
PUT
/registries/{host}
const url = 'https://api.global.stillbox.example/v1/registries/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"username":"example","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”host
required
string
The registry, as in image names (docker.io, ghcr.io, registry.example.com:5000)
Request Bodyrequired
Section titled “Request Bodyrequired”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"}Responses
Section titled “Responses”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"}