Skip to content

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
hoststring
secretstring
usernamestring
Responses
201 CreatedCreated
400 Bad requestBad Request
ErrorResponse
errorstring
501 Not Implemented
ErrorResponse
errorstring
Authentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.
Request
POST/registry/credentials
cURL
curl '/registry/credentials' \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{}'
Response
201 Created
No response body.
Was this page helpful?