Update a registry
PUT
/registries/{id}
const url = 'https://your-server.example/api/registries/1';const options = { method: 'PUT', 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 PUT \ --url https://your-server.example/api/registries/1 \ --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”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
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”Updated.
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"}