Skip to content
v0.3

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
{
"properties": {
"id": {
"minLength": 1,
"type": "string"
},
"schemaName": {
"maxLength": 63,
"pattern": "^[a-z_][a-z0-9_]*$",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"schema_name": {
"type": "string"
}
},
"required": [
"id",
"schema_name"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)