v1beta
Double column
curl
API
CLI
API
CLI

POST /v1beta/projects/{project}/secrets/{secret}

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":[{"nfObjectId":"example-service","nfObjectType":"service"}]},"secretType":"environment","data":{"NODE_ENV":"production","MONGO_DB":"some_connection_string"}}' \
  https://api.northflank.com/v1beta/projects/{project}/secrets/{secret}

Example response

200 OK

Response indicating success.

JSON

{
  "success": true
}

© 2021 Northflank Ltd. All rights reserved.

TermsPrivacy

contact@northflank.com