Set a feature flag
PUT /v2/config/feature_flags/:name
Request
Route
PUT /v2/config/feature_flags/user_org_creation
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
- service_instance_creation
- diego_docker
- set_roles_by_username
- unset_roles_by_username
- task_creation (experimental)
- space_scoped_private_broker_creation (experimental)
- space_developer_env_var_visibility (experimental)
- service_instance_sharing (experimental)
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
enabled
|
The state of the feature flag.
|
|
|
|
error_message
|
The custom error message for the feature flag.
|
|
|
|
{
"enabled": true
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/config/feature_flags/user_org_creation" -d '{
"enabled": true
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.NAuGs1ierTn0ZOs_LNyJ6c-cwqV2RG_aO2DrPBjI3BA" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"name": "user_org_creation",
"enabled": true,
"error_message": null,
"url": "/v2/config/feature_flags/user_org_creation"
}
Headers