---
title: "Update current tenant settings"
method: PATCH
path: "/settings/current"
tags: ["Settings"]
---

# Update current tenant settings

`PATCH /settings/current`

Update the settings for the current user's tenant (tenant admin only).

## Query parameters

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

## Request body

- SettingsIn
  - `default_llm_catalog_id` integer, nullable — ID of the LLM catalog entry to use as the tenant default model. Must be a model enabled for the tenant.
  - `guardrails_enabled` boolean, nullable — Whether input/output guardrails are applied to chat.
  - `sharepoint_enabled` boolean, nullable — Whether the SharePoint integration is enabled for the tenant.
  - `inbound_guardrail` string, nullable — Identifier of the guardrail applied to inbound (user) messages.
  - `outbound_guardrail` string, nullable — Identifier of the guardrail applied to outbound (model) messages.
  - `welcome_email_template_id` integer, nullable — ID of the email template sent to new users on signup.
  - `project_member_added_email_template_id` integer, nullable — ID of the email template sent when a user is added to a project.
  - `system_prompt` string, nullable — Tenant-wide system prompt prepended to chat conversations.
  - `errlog_webhook_url` string, nullable — Webhook URL that receives error-log notifications.
  - `require_email_confirmation` boolean, nullable — Whether new users must confirm their email. Superadmin-only field.

## Response `200`

Successful Response

- Settings
  - `id` integer, nullable — Primary key for the tenant settings record.
  - `tenant_id` integer, required — ID of the tenant these settings belong to.
  - `default_llm_catalog_id` integer, nullable — ID of the default LLM catalog entry for the tenant.
  - `created_at` string, date-time — Timestamp when the settings record was created.
  - `guardrails_enabled` boolean — Whether guardrails are enabled for the tenant.
  - `sharepoint_enabled` boolean, nullable, required — Whether SharePoint integration is enabled for the tenant.
  - `inbound_guardrail` string, nullable — Identifier of the inbound guardrail policy applied to user input.
  - `outbound_guardrail` string, nullable — Identifier of the outbound guardrail policy applied to model output.
  - `system_prompt` string, nullable — Tenant-wide default system prompt.
  - `inserted_by` string, nullable, required — Marker indicating which process inserted the record (e.g. alembic).
  - `errlog_webhook_url` string, nullable — Webhook URL for delivering error log notifications.
  - `default_language` string — Default language code for the tenant's emails.
  - `require_email_confirmation` boolean — Whether users must confirm their email before login.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Tenant admin privileges required.
- `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)
