Home
Version 3
Environment Variable Groups API

Environment Variable Groups API

Updating the contents of the staging environment variable group

PUT /v2/config/environment_variable_groups/staging

Updates the set of environment variables which will be made available during staging

Request

Route

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.tjXQjzfR0N9266ctRQHBIdRSgQlEtAwPWJCa4DjcXUc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/environment_variable_groups/staging" -d '{
  "abc": 123,
  "do-re-me": "far-so-la-tee"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NiIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODR9.tjXQjzfR0N9266ctRQHBIdRSgQlEtAwPWJCa4DjcXUc" \
	-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