Skip to main content
Version: 2.0.0

CreateTenant

Creates a new tenant.

Parameters

tenantObj - An object that contains the information about the tenant. The payload is defined below.

Payload

Key - A unique id by which Permit will identify the tenant. The tenant key must be url-friendly (slugified).
Name - A descriptive name for the tenant.
Description - optional - A longer description of the tenant.
Attributes - optional - Arbitraty tenant attributes that will be used to enforce attribute-based access control policies.

{
Key: "key",
Name: "name",
Description: "description",
Attributes: {}
}

Implementation

var response = await permitClient.Api.CreateTenant(tenantObj);