v1
Double column
API
CLI
JS client
API
CLI
JS client

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

Example request

request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"description":"A description","priority":10,"restrictions":{"restricted":false,"nfObjects":[{"id":"example-service","type":"service"}]},"addonDependencies":[{"addonId":"example-addon","keys":[{"keyName":"username","aliases":["MONGO_USERNAME"]}]}],"secretType":"environment","data":{"NODE_ENV":"production","MONGO_DB":"some_connection_string"}}' \
  https://api.northflank.com/v1/projects/{projectId}/secrets/{secretId}

Example response

200 OK

The operation was performed successfully.

JSON

{
  "success": true
}

© 2021 Northflank Ltd. All rights reserved.