---
title: "Update the current tenant's external tool settings"
method: PATCH
path: "/admin/tenant"
tags: ["admin", "tenant"]
---

# Update the current tenant's external tool settings

`PATCH /admin/tenant`

## Request body

- object — Partial update for the current tenant's external tool settings. All fields are optional.
  - `claude_code_enabled` boolean — Whether to allow Claude Code from notebook pods.
  - `codex_enabled` boolean — Whether to allow OpenAI Codex from notebook pods.

## Response `200`

Succeeded

- object — External tool settings for the current tenant.
  - `data` object, required
    - `claude_code_enabled` boolean, required — Whether notebook pods in this tenant are allowed to reach Claude Code / Anthropic API endpoints.
    - `codex_enabled` boolean, required — Whether notebook pods in this tenant are allowed to reach OpenAI Codex / ChatGPT endpoints.

## Other responses

- `400` — Bad request
- `default` — Other error

---

[API](https://skmtc.dev/matlantis/apis/matlantis-web-ui-backend-api.md) · [All operations](https://skmtc.dev/matlantis/apis/matlantis-web-ui-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/matlantis/matlantis-web-ui-backend-api/revisions/b155f3a32673/schema)
