API referenceGenerated
Create Feature
Configure a (typically just-discovered) feature. Any tenant member may do this. tenant_id comes from the verified identity — never the client — and the row is keyed per-tenant, so two tenants can configure the same feature id independently. A duplicate within the tenant is 409.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Configure (create) a feature. revenue_per_unit is Decimal (money-precision): send it as a JSON string from the client so it never round-trips through float.
Response Body
application/json
application/json
curl -X POST "https://example.com/features" \ -H "Content-Type: application/json" \ -d '{ "feature": "string", "display_name": "string", "revenue_per_unit": 0, "unit": "string" }'{ "feature": "string", "display_name": "string", "revenue_per_unit": "string", "unit": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}