Home
Version 3
Feature Flags API

Feature Flags API

Get the Task Creation feature flag (experimental)

GET /v2/config/feature_flags/task_creation

When enabled, space developers can create tasks. When disabled, only admin users can create tasks.

Request

Route

GET /v2/config/feature_flags/task_creation

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MCIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.Mqrxfz0Lb4NqoVLBdXjkvyhbXtDFVRO_Uo3TjsuTH_E
Host: example.org
Cookie: 

cURL

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

Response

Status

200 OK

Body

{
  "name": "task_creation",
  "enabled": false,
  "error_message": null,
  "url": "/v2/config/feature_flags/task_creation"
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d56f5436-a360-4634-86ce-7ca09ab7f618
Content-Length: 125
X-Content-Type-Options: nosniff