Add a private registry
POST
/registries
const url = 'https://your-server.example/api/registries';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","registry":"ghcr.io","username":"example","password":"example","created_at":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-server.example/api/registries \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "id": 1, "name": "example", "registry": "ghcr.io", "username": "example", "password": "example", "created_at": "2026-04-15T12:00:00Z" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
id
integer format: int64
name
string
registry
string
Example
ghcr.iousername
string
password
Write-only; never returned.
string
created_at
string format: date-time
Responses
Section titled “Responses”Created.
Media typeapplication/json
object
id
integer format: int64
name
string
registry
string
username
string
password
Write-only; never returned.
string
created_at
string format: date-time
Example
{ "registry": "ghcr.io"}