---
title: "Update global configuration"
method: PATCH
path: "/api/experimental/config"
tags: ["config"]
---

# Update global configuration

`PATCH /api/experimental/config`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/experimental/config`
- Auth: none required

Patch supported fields in the highest-precedence global configuration document.

## Request body

- ConfigPatch
  - `shell` string, nullable, required

## Response `204`

<No Content>

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `404`: LocationNotFoundError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
