v1
Double column
API
CLI
JS client
API
CLI
JS client

POST /v1/projects/{projectId}/secrets/{secretId}/addons/{addonId}

Example request

request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"keys":[{"keyName":"username","aliases":["MONGO_USERNAME"]}]}' \
  https://api.northflank.com/v1/projects/{projectId}/secrets/{secretId}/addons/{addonId}

Example response

200 OK

Details about the new keys.

JSON

{
  "keys": [
    {
      "keyName": "username",
      "aliases": [
        "MONGO_USERNAME"
      ],
      "defaultKey": "NF_EXAMPLE-ADDON_USERNAME"
    }
  ]
}

© 2021 Northflank Ltd. All rights reserved.