Home
Version 3
Feature Flags API

Feature Flags API

Set a feature flag

PUT /v2/config/feature_flags/:name

Fields

Name Description Default Valid Values Example Values
enabled The state of the feature flag.
  • true
  • false
error_message The custom error message for the feature flag.
  • error message

Parameters

Name Description Valid Values Example Values
name The name of the feature flag
  • user_org_creation
  • app_bits_upload
  • private_domain_creation
  • app_scaling
  • route_creation

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.8OX7IWK9GakphZWxQRaZIjEyNoWMpr4WN0oeEetpIKU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/config/feature_flags/user_org_creation

Body

{
  "enabled": true
}

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/user_org_creation" -d '{
  "enabled": true
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.8OX7IWK9GakphZWxQRaZIjEyNoWMpr4WN0oeEetpIKU" \
	-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: 89c686a6-51fa-47d3-befe-10070bfabb7e
Content-Length: 132
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "name": "user_org_creation",
  "enabled": true,
  "error_message": null,
  "url": "/v2/config/feature_flags/user_org_creation"
}