v1
Double column
API
CLI
JS client
API
CLI
JS client

POST /v1/registry-credentials

Example request

request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"name":"Example Credentials","description":"This is a set of saved credentials.","provider":"dockerhub","restrictions":{"restricted":true,"projects":["default-project"]},"data":{"auths":{"https://index.docker.io/v1/":{"auth":"[YOUR AUTH KEY]"}}}}' \
  https://api.northflank.com/v1/registry-credentials

Example response

200 OK

Data about the newly created credentials.

JSON

{
  "id": "example-credentials"
}

© 2021 Northflank Ltd. All rights reserved.