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.

Parameters:

  • Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

  • Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

  • (defaults to: {})

    the optional parameters

Returns:



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