Environment Variable Groups API

Updating the contents of the running environment variable group

PUT /v2/config/environment_variable_groups/running

Updates the set of environment variables which will be made available to all running apps

Request

Route

PUT /v2/config/environment_variable_groups/running
{
  "abc": 123,
  "do-re-me": "far-so-la-tee"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMiIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.6qkO234TOd8T4LGV4uCbrDmTCIOiAdNiwK0IXIQA1xg
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/environment_variable_groups/running" -d '{
  "abc": 123,
  "do-re-me": "far-so-la-tee"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMiIsImVtYWlsIjoiZW1haWwtMjg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.6qkO234TOd8T4LGV4uCbrDmTCIOiAdNiwK0IXIQA1xg" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "abc": 123,
  "do-re-me": "far-so-la-tee"
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fbf71792-0bd0-4b5c-a9a6-bbfcf9754536
Content-Length: 47
X-Content-Type-Options: nosniff