Secrets /
Update secret addon link
Required permission
Project > Secrets > General > Update
Path parameters
projectId
string requiredID of the project
secretId
string requiredID of the secret
addonId
string requiredID of the addon
Request body
- {object}
keys
[array] requiredAn array of objects containing details about the keys to link to this secret group.
- {object}
Details about the key to link to this secret group.
keyName
string requiredThe name of the key to link.
pattern[a-zA-Z]+aliases
[array]An array of aliases for the key.
- string
The name of the alias. Keys may only contain letters, numbers, hyphens, forward slashes and dots.
pattern^[a-zA-Z0-9_./-]*$
Response body
- {object}
Response object.
data
{object} requiredResult data.
keys
[array] requiredAn array of objects containing details about the keys linked to this secret group.
- {object}
Details about a key linked to this secret group.
keyName
string requiredThe name of the key to link.
pattern[a-zA-Z]+aliases
[array]An array of aliases for the key.
- string
The name of the alias. Keys may only contain letters, numbers, hyphens, forward slashes and dots.
pattern^[a-zA-Z0-9_./-]*$ defaultKey
string required
POST /v1/projects/{projectId}/secrets/{secretId}/addons/{addonId}
Example request
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
JSON
{
"data": {
"keys": [
{
"keyName": "USERNAME",
"aliases": [
"MONGO_USERNAME"
],
"defaultKey": "NF_EXAMPLE-ADDON_USERNAME"
}
]
}
}