Create
Provisions a new tenant. System-admin only — 403 for any other caller, since there is no existing tenant row yet for a resource-level check to apply to. owner_person_id is required: it names the person this workspace belongs to for workspace-plan accounting, and a workspace created without one would count against nobody's plan permanently (400 owner_person_id_required; 400 owner_person_not_found if it names no person). An operator provisioning a workspace FOR a customer names the customer — to own it themselves they pass their own person id. The owner's plan allowance is deliberately NOT enforced on this path: an operator grant may legitimately exceed a plan (a comp, a pilot), and the excess is then visible as owned above workspace_slots on getSelfServeTenantAllowance rather than hidden as an unowned workspace.
Request
- Base URL: https://api.instruxi.dev/api/v1/enforcer
- URL: https://api.instruxi.dev/api/v1/enforcer/tenants
- Auth: one of:
- API key in header Authorization
- API key in header X-API-Key
Request body
Response
Created
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.