Skip to main content

handle_create_tenant

Function handle_create_tenant 

Source
pub async fn handle_create_tenant(
    __arg0: State<Arc<Context>>,
    __arg1: Json<CreateTenantRequest>,
) -> Result<Json<TenantResponse>, StatusCode>
Expand description

Handle POST /tenants/resources/tenants/v1

Creates a tenant. Fails with a 409 if a tenant with the ID already exists.