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.eyJ1c2VyX2lkIjoidWFhLWlkLTIxIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA0fQ.ux9KuW17broZlA5VuIaL3TPCy45PPP_sd2m1TgUtttg
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/task_creation" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxIiwiZW1haWwiOiJlbWFpbC0yMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA0fQ.ux9KuW17broZlA5VuIaL3TPCy45PPP_sd2m1TgUtttg" \
	-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: d5ee5d31-fc9f-4388-9096-d71e10e437c0
Content-Length: 125
X-Content-Type-Options: nosniff