Feature Flags API

Get the Resource Matching feature flag

GET /v2/config/feature_flags/resource_matching

When enabled, any user can create resource matches. When disabled, the resource match endpoint always returns an empty array of matches.

Request

Route

GET /v2/config/feature_flags/resource_matching

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.3iK1BwesN-m07GBE-WKv5LwqhMd8P0bSeLvg-Doyw-o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/config/feature_flags/resource_matching" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.3iK1BwesN-m07GBE-WKv5LwqhMd8P0bSeLvg-Doyw-o" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

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

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 564ae736-51dd-4cd0-9baf-4c6917aabc5b
Content-Length: 128
X-Content-Type-Options: nosniff