When enabled, any user can create an organization via the API. When disabled, only admin users can create organizations via the API.
GET /v2/config/feature_flags/user_org_creation
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.-CVlwB2xGhTCL1OiyvUP3EHoNil5JZlpD1CCYWAydn4 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/config/feature_flags/user_org_creation" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NSIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDB9.-CVlwB2xGhTCL1OiyvUP3EHoNil5JZlpD1CCYWAydn4" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{
"name": "user_org_creation",
"enabled": false,
"error_message": null,
"url": "/v2/config/feature_flags/user_org_creation"
}
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 8b12ebd7-9b18-4ea9-a08f-5aa46e50917b Content-Length: 133 X-Content-Type-Options: nosniff