Home
Version 3
Feature Flags API

Feature Flags API

Get the Route Creation feature flag

GET /v2/config/feature_flags/route_creation

When enabled, a space developer can create routes in a space. When disabled, only admin users can create routes.

Request

Route

GET /v2/config/feature_flags/route_creation

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDN9.G9Z_qWnrbK7XEnMYGGbRVQpozFkV20OogyHLAz_iceA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/route_creation" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMyIsImVtYWlsIjoiZW1haWwtMjMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDN9.G9Z_qWnrbK7XEnMYGGbRVQpozFkV20OogyHLAz_iceA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

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

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 494147aa-e761-453b-8c77-6a70ecac7629
Content-Length: 126
X-Content-Type-Options: nosniff