platform.tenant.provision
Provision a tenant: create its schema, run migrations, register it.
- Scope:
platform.tenant.write - System: yes
- Reachable from: the platform CONTROL face, with a platform credential — never a tenant one. See the surfaces.
- Events:
platform.tenant.provisioned
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "id": { "minLength": 1, "type": "string" }, "schemaName": { "maxLength": 63, "pattern": "^[a-z_][a-z0-9_]*$", "type": "string" } }, "required": [ "id" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "id": { "type": "string" }, "schema_name": { "type": "string" } }, "required": [ "id", "schema_name" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)