---
title: "Update current tenant"
method: PATCH
path: "/tenants/current"
tags: ["Tenant"]
---

# Update current tenant

`PATCH /tenants/current`

Update the current user's tenant (tenant admin; some fields superadmin-only).

## Query parameters

- `cookie_name` string, nullable
- `tenant_id` integer

## Request body

- TenantUpdateIn
  - `name` string, nullable — Internal name of the tenant.
  - `domain` string, nullable — Primary email/web domain associated with the tenant.
  - `parent_tenant_id` integer, nullable — ID of the parent tenant. Changing requires superadmin.
  - `subtenants_enabled` boolean, nullable — Whether this tenant may create child tenants. Changing requires superadmin.
  - `timezone` string, nullable — Default IANA timezone for the tenant.
  - `locale` string, nullable — Default locale for the tenant.
  - `tarif_id` integer, nullable — ID of the tariff to assign. Changing requires superadmin.
  - `tarif_expires_at` string, date-time, nullable — UTC timestamp when the assigned tariff expires. Changing requires superadmin.
  - `max_users` integer, nullable — Maximum number of users allowed in the tenant.
  - `max_projects` integer, nullable — Maximum number of projects allowed in the tenant.
  - `licenses` integer, nullable — Number of seats/licenses. Changing requires superadmin.
  - `display_name` string, nullable — Human-friendly display name shown in the UI.
  - `motto` string, nullable — Short tagline shown in the tenant's UI.
  - `logo_url` string, nullable — URL of the tenant's primary logo.
  - `square_logo_url` string, nullable — URL of the tenant's square logo variant.
  - `favicon_url` string, nullable — URL of the tenant's favicon.
  - `chat_square_logo_url` string, nullable — URL of the square logo shown in the chat UI.
  - `primary_color` string, nullable — Primary brand color (hex).
  - `secondary_color` string, nullable — Secondary brand color (hex).
  - `theme` string, nullable — Name of the UI theme to apply.
  - `storage_limit_gb` integer, nullable — Storage limit for the tenant, in gigabytes.
  - `api_rate_limit` integer, nullable — API request rate limit for the tenant.
  - `upstream_tenant_id` string, nullable — UUID of the upstream identity-provider tenant. Changing requires superadmin.
  - `upstream_oidc_issuer` string, nullable — OIDC issuer URL of the upstream identity provider. Changing requires superadmin.

## Response `200`

Successful Response

- TenantOut
  - `id` integer, required — Unique identifier of the tenant.
  - `created_at` string, date-time, required — UTC timestamp when the tenant was created.
  - `creator_user_id` integer, nullable — ID of the user who created the tenant, if known.
  - `name` string, required — Internal name of the tenant.
  - `slug` string, required — URL-safe unique identifier for the tenant.
  - `domain` string, nullable — Primary email/web domain associated with the tenant.
  - `parent_tenant_id` integer, nullable — ID of the parent tenant, when this is a child tenant.
  - `subtenants_enabled` boolean, required — Whether this tenant may create child tenants.
  - `timezone` string, required — Default IANA timezone for the tenant.
  - `locale` string, required — Default locale for the tenant.
  - `tarif_id` integer, nullable — ID of the tariff currently assigned to the tenant.
  - `max_users` integer, nullable — Maximum number of users allowed in the tenant.
  - `max_projects` integer, nullable — Maximum number of projects allowed in the tenant.
  - `licenses` integer, nullable — Number of seats/licenses for the tenant.
  - `display_name` string, nullable — Human-friendly display name shown in the UI.
  - `motto` string, nullable — Short tagline shown in the tenant's UI.
  - `logo_url` string, nullable — URL of the tenant's primary logo.
  - `square_logo_url` string, nullable — URL of the tenant's square logo variant.
  - `favicon_url` string, nullable — URL of the tenant's favicon.
  - `chat_square_logo_url` string, nullable — URL of the square logo shown in the chat UI.
  - `primary_color` string, nullable — Primary brand color (hex).
  - `secondary_color` string, nullable — Secondary brand color (hex).
  - `theme` string, nullable — Name of the UI theme applied.
  - `storage_limit_gb` integer, nullable — Storage limit for the tenant, in gigabytes.
  - `api_rate_limit` integer, nullable — API request rate limit for the tenant.
  - `state` string, nullable — Lifecycle state of the tenant.
  - `upstream_tenant_id` string, nullable — UUID of the upstream identity-provider tenant.
  - `upstream_oidc_issuer` string, nullable — OIDC issuer URL of the upstream identity provider.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Tenant admin privileges required, or superadmin required to change protected fields.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/versions/b53e89b98c2b/schema)
