Home
Version 3
Environment Variable Groups API

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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MX0.u0Ahz0gS-SzOQUKQDhS07j7dT9mq16xN9ZYIw7LpoMc
Host: example.org
Content-Type: application/x-www-form-urlencoded
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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MX0.u0Ahz0gS-SzOQUKQDhS07j7dT9mq16xN9ZYIw7LpoMc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-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: 
Content-Length: 47
X-Content-Type-Options: nosniff