Edit a feature lever
Changes the display name, the platform default, or whether the lever applies at all. Deactivating retires it: it is dropped from every workspace's resolved set, which turns a capability off for everyone and stops a quota being enforced. Requires an admin user.
/api/v1/admin/features/{key}Authorization
BearerAuth In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Every field optional; only the ones sent are changed.
default_value cannot use None as "not sent" -- null is a real default
meaning unlimited -- so the unset check is "default_value" in model_fields_set, not a None test.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/v1/admin/features/string" \ -H "Content-Type: application/json" \ -d '{}'{ "key": "string", "name": "string", "value_type": "string", "default_value": null, "allowed_values": [ "string" ], "is_active": true}Add a feature lever to the catalog POST
Creates a platform-default row. No backfill follows and none is needed: every workspace without an override of its own resolves through this row, so the lever is live everywhere the moment it commits. Requires an admin user.
Delete a feature lever and every override of it DELETE
Destructive and not undoable: the negotiated per-workspace exceptions go with the definition. Refused while the lever is still active -- deactivate it first. Requires an admin user.