From 964c32b731d4b29519dad4ad566d8a9a77c22b60 Mon Sep 17 00:00:00 2001 From: Abzal Orazbek Date: Fri, 1 May 2026 02:14:05 +0500 Subject: [PATCH] add missing docs for global config endpoints --- packages/web/src/content/docs/server.mdx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/web/src/content/docs/server.mdx b/packages/web/src/content/docs/server.mdx index 4510bd4981fe..eed96ccc034d 100644 --- a/packages/web/src/content/docs/server.mdx +++ b/packages/web/src/content/docs/server.mdx @@ -89,10 +89,12 @@ The opencode server exposes the following APIs. ### Global -| Method | Path | Description | Response | -| ------ | ---------------- | ------------------------------ | ------------------------------------ | -| `GET` | `/global/health` | Get server health and version | `{ healthy: true, version: string }` | -| `GET` | `/global/event` | Get global events (SSE stream) | Event stream | +| Method | Path | Description | Response | +| ------- | ---------------- | ------------------------------ | ------------------------------------ | +| `GET` | `/global/health` | Get server health and version | `{ healthy: true, version: string }` | +| `GET` | `/global/event` | Get global events (SSE stream) | Event stream | +| `GET` | `/global/config` | Get global config info | Config | +| `PATCH` | `/global/config` | Update global config | Config | --- @@ -126,8 +128,8 @@ The opencode server exposes the following APIs. | Method | Path | Description | Response | | ------- | ------------------- | --------------------------------- | ---------------------------------------------------------------------------------------- | -| `GET` | `/config` | Get config info | Config | -| `PATCH` | `/config` | Update config | Config | +| `GET` | `/config` | Get instance config info | Config | +| `PATCH` | `/config` | Update instance config | Config | | `GET` | `/config/providers` | List providers and default models | `{ providers: `Provider[]`, default: { [key: string]: string } }` | ---