v1
Double column
API
CLI
JS Client
API
CLI
JS Client

POST /v1/projects/{projectId}/services/{serviceId}/environment

Example request

Request body

curl
curl --header "Content-Type: application/json" \
  --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
  --request POST \
  --data '{"runtimeEnvironment":{"VARIABLE_1":"abcdef","VARIABLE_2":"12345"}}' \
  https://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/environment

Example response

200 OK

Details about the updated environment.

JSON

{
  "data": {
    "success": true,
    "restartSuccessful": true
  }
}

© 2021 Northflank Ltd. All rights reserved.