Skip to content

Tenant.provision

POST /{namespace}/tenants/provision

Provision creates a Customer’s Tenant in a Startup’s App, holding that Customer’s records apart from every other.

Noun
Tenant
Mode
do
Event
Tenant.provisioned

Inputs

InputTypeRequiredDescription
customerCustomerrequiredThe Customer the Tenant serves.

Outputs

OutputTypeRequiredDescription
tenantTenantrequiredThe new Tenant.

Effects

Refuses when

CheckErrorFixThen call
The operation is part of an Offer the caller has not accepted or paid for.payment-requiredAccept the Offer named in the response, then retry the call.Offer.accept
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Tenant.provision
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.Tenant.provision

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.