Skip to content

Tenant

A Tenant is the partition of a Startup’s data that belongs to one Customer.

Properties

PropertyTypeRequiredDescription
placementstringWhere the Tenant sits in an address: path or host.
apiVersionstringThe API version an unversioned call with this Tenant’s keys answers at; set at creation, moved only by pin.

Object

JSON
{
  "$id": "https://api.sb/petpantry.shop/tenants/tenant_1",
  "$type": "Tenant",
  "placement": "path",
  "apiVersion": "v2"
}

Relationships

Verbs

  1. createCreates a Tenant.
    POST /{namespace}/tenantsdoTenant.created
  2. getReturns one Tenant by id.
    GET /{namespace}/tenants/{id}readNo Event
  3. listReturns Tenants, newest first, one page at a time.
    GET /{namespace}/tenantsreadNo Event
  4. updateChanges the given properties of a Tenant.
    PATCH /{namespace}/tenants/{id}doTenant.updated
  5. deleteDeletes a Tenant; its history is kept.
    DELETE /{namespace}/tenants/{id}doTenant.deleted
  6. inviteInvite asks a Person to join a Customer’s Tenant, and resizes the Subscription when the Offer prices per member.
    POST /{namespace}/tenants/{tenant}/invitedoTenant.invited
  7. pinPin moves a Tenant’s keys to another API version, or to `latest`, once a call with its test key passes there.
    POST /{namespace}/tenants/{tenant}/pindoTenant.pinned
  8. provisionProvision creates a Customer’s Tenant in a Startup’s App, holding that Customer’s records apart from every other.
    POST /{namespace}/tenants/provisiondoTenant.provisioned
  9. requestSetupRequestSetup sends a Customer’s admin a link to connect their own sign-in, directory or verified domain to the Tenant.
    POST /{namespace}/tenants/{tenant}/requestSetupdoTenant.setupRequested

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Tenant.createYesYesYesNo
Tenant.getYesYesYesYes
Tenant.listYesYesYesYes
Tenant.updateYesYesYesNo
Tenant.deleteYesYesYesNo
Tenant.inviteYesYesYesNo
Tenant.pinYesYesYesNo
Tenant.provisionYesYesYesNo
Tenant.requestSetupYesYesYesNo

Call it

Text
Provision the latest tenant with a customer.

Example

A recruiting agency's Tenant in a candidate-tracking SaaS holds its 40,000 candidates, its API keys, and its usage. No other Customer reads it.