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

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

© 2021 Northflank Ltd. All rights reserved.