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

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM0N30.DIdjnNw5X5KgITHHdXm-1C-J1JbCouoSEBjIzyLbB1g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/environment_variable_groups/staging

Body

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

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM0N30.DIdjnNw5X5KgITHHdXm-1C-J1JbCouoSEBjIzyLbB1g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4208ef0e-486d-42c1-b701-d653554cd77e
Content-Length: 47
X-Content-Type-Options: nosniff

Status

200 OK

Body

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