# Tenants: Update a tenant (https://docs.envocal.ai/api-reference/tenants/update-a-tenant/) > Replaces the tenant's name, domain and external id. The tenant type cannot be changed. ## PUT `/v1/tenants/{tenantId}` Replaces the tenant's name, domain and external id. The tenant type cannot be changed. **Required permission:** `tenants:write` ### Parameters | Name | In | | Type | Description | | --- | --- | --- | --- | --- | | `tenantId` | path | required | string | Tenant id, or `current` for the key's own tenant. Must be the key's tenant or one of its sub-tenants. | ### Request body `application/json`: TenantUpdateDto | Field | Type | | Description | | --- | --- | --- | --- | | `name` | string | required | Display name. | | `domain` | string | nullable | Email domain, unique across tenants; null or empty to clear. | | `extraId` | string | nullable | Your own reference for this tenant; null or empty to clear. | ### Responses **204**: Updated. **401**: Missing, invalid, revoked or expired API key. **403**: The key lacks the required permission, or the tenant/resource is outside its reach. **404**: Tenant not found. **429**: Rate limit exceeded. Retry after the number of seconds in the Retry-After header. ### Example ```bash curl -X PUT "https://api.envocal.ai/v1/tenants/current" \ -H "Authorization: Bearer evk_eu_..." \ -H "Content-Type: application/json" \ -d '{"name":"string"}' ```