Switch a feature
const url = 'http://localhost:3000/api/v1/features/example?context=organization';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"state":"on"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url 'http://localhost:3000/api/v1/features/example?context=organization' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "state": "on" }'On or off, for every project of the organization or (projects) left to each; in a project, only while the organization lets each decide. Off means off everywhere at once: what it does is refused with feature_off, and nothing is deleted. A feature of the server’s is told by its hook and may refuse being turned on, with a reason (403); then nothing changes. Admin there.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”E.g. agents
Query Parameters
Section titled “Query Parameters”Where
Request Bodyrequired
Section titled “Request Bodyrequired”object
On or off; at the organization, projects lets each project decide
Responses
Section titled “Responses”The feature, as it now is
object
object
Agents, shares, portals, hub, insights, or one of the server’s own (FEATURES_FILE)
What turning it off does
The core’s own, rather than the server’s
Where it is switched
Where nothing switched it
The organization’s plan has it: false shows the way to one that does instead of a switch
Where its own view is read, under Manage while it is on: a path on this origin when it is the app’s
The organization’s switch: on or off in every project, or each project decides
In the project: whether it is on there; null at the organization
It can be switched here: in a project, only while the organization lets each decide
Example
{ "data": { "levels": [ "organization" ], "default": "on", "rule": "on", "from": "organization" }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}