createTenant
POST/api/v1/platform/tenants
Creates the tenant with its controller shard, its data key and its reserved team excubio (docs/watch.md §1), and invites its first tenant admins: each of admins gets the role tenant-admin at the first login of that subject, or with that e-mail address verified by the IdP, once, audited (docs/schema/cloud.sql tenant_invite). Watch learns of it with the cloud's next push (docs/watch.md §5). A repeat is answered 409: the slug is taken.
Request
Responses
- 201
- 409
- 422
Created
request.duplicate: the slug is taken; several tenants may name one organization (docs/architecture.md §12); installation.in_use: another tenant names the dedicated installation or has hubs on it
tenant.no_carrier, installation.unknown