Store a private-registry credential
POST/registry/credentials
Adds or replaces the credential used to pull from a private registry (`crucible registry login`). The secret is write-only — it is never returned by any endpoint. 501 when no credential store is configured.
Request bodyapplication/json
RegistryCredentialRequest
hoststringsecretstringusernamestringResponses
201 CreatedCreated
400 Bad requestBad Request
ErrorResponse
errorstring501 Not Implemented
ErrorResponse
errorstringAuthentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.Request
▍POST/registry/credentials
curl '/registry/credentials' \
-X POST \
-H 'Content-Type: application/json' \
-d '{}'const response = await fetch("/registry/credentials", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: "{}",
});
const data = await response.json();import requests
response = requests.post(
"/registry/credentials",
headers={
"Content-Type": "application/json",
},
data="{}",
)
data = response.json()Response
201 Created
No response body.