Home
Version 3
Feature Flags API

Feature Flags API

Get the App Bits Upload feature flag

GET /v2/config/feature_flags/app_bits_upload

When enabled, space developers can upload app bits. When disabled, only admin users can upload app bits

Request

Route

GET /v2/config/feature_flags/app_bits_upload

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk4M30.Ca8E4w0d1nfhzl_MG08M_AWHPxeoaTUgcSHs3DnBfjg
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

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

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: daaf4304-d37e-4daa-8e02-88f944737946
Content-Length: 128
X-Content-Type-Options: nosniff