permit.api.tenants.update()
Updates the tenant.
Parameters
tenantkey
- The id of the tenant. This can also be the tenant key.
tenantData
- An object that contains the information about the tenant. The payload is defined below.
Payload
name
- optional - 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.
Implementation
import io.permit.sdk.openapi.models.TenantUpdate;
permit.api.tenants.update("awesome-inc", new TenantUpdate().withDescription("new description"));