Method: OpenapiClient::TenantsApi#create_tenant
- Defined in:
- lib/openapi_client/api/tenants_api.rb
#create_tenant(proj_id, env_id, tenant_create, opts = {}) ⇒ TenantRead
Create Tenant Creates a new tenant inside the Permit.io system. If the tenant is already created: will return 200 instead of 201, and will return the existing tenant object in the response body.
29 30 31 32 |
# File 'lib/openapi_client/api/tenants_api.rb', line 29 def create_tenant(proj_id, env_id, tenant_create, opts = {}) data, _status_code, _headers = create_tenant_with_http_info(proj_id, env_id, tenant_create, opts) data end |