# Tenants Method | HTTP request | Description ------------- | ------------- | ------------- [**create_tenant**](#create_tenant) | **POST** /v1/tenants | Create tenant [**delete_tenant**](#delete_tenant) | **DELETE** /v1/tenants/{tenantId} | Delete tenant [**get_tenant**](#get_tenant) | **GET** /v1/tenants/{tenantId} | Retrieve tenant [**get_tenants**](#get_tenants) | **GET** /v1/tenants | List tenants [**update_tenant**](#update_tenant) | **PUT** /v1/tenants/{tenantId} | Update tenant ## create_tenant > crate::models::Tenant create_tenant(tenant) Create tenant Specify tenant identity details for tenant tracking, separation, and user management. Tenant identifiers are persisted to access tokens created by Authress. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant** | [**Tenant**](Tenant.md) | | [required] | ### Return type [**crate::models::Tenant**](Tenant.md) --- ## delete_tenant > delete_tenant(tenant_id) Delete tenant Delete a tenant. If a connection was created for the tenant then it is deleted as well. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant_id** | **String** | The tenantId. | [required] | ### Return type (empty response body) --- ## get_tenant > crate::models::Tenant get_tenant(tenant_id) Retrieve tenant Get the tenant details for an Authress tenant. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant_id** | **String** | The tenantId. | [required] | ### Return type [**crate::models::Tenant**](Tenant.md) --- ## get_tenants > crate::models::TenantCollection get_tenants() List tenants Returns a paginated tenants list for the account. Only tenants the user has access to are returned. ### Parameters This endpoint does not need any parameter. ### Return type [**crate::models::TenantCollection**](TenantCollection.md) --- ## update_tenant > crate::models::Tenant update_tenant(tenant_id, tenant) Update tenant Updates the tenants information and linked tenant if it exists. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant_id** | **String** | The tenantId. | [required] | **tenant** | [**Tenant**](Tenant.md) | | [required] | ### Return type [**crate::models::Tenant**](Tenant.md) ---