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.

Fields

Name Description Default Valid Values Example Values

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzh9.NIbGJ3Nh4zNheGzVNIBbTLhwxhyFKauzGmn7LKZ_Z1o
Host: example.org
Cookie: 

Route

GET /v2/config/feature_flags/route_creation

cURL

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

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8f57bc23-31fb-44c9-8661-3b8dec34ef9b
Content-Length: 126
X-Content-Type-Options: nosniff

Status

200 OK

Body

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