# Configuration

Configuration describes the site's business content and behavior. Read the editable view before writing it.

| HTTP | MCP | Purpose |
| --- | --- | --- |
| `GET /sites/{siteId}/config` | `get_site_config` | Read editable configuration |
| `GET /sites/{siteId}/config/describe` | `describe_site_config` | Discover supported fields and constraints |
| `PATCH /sites/{siteId}/config` | `edit_site_config` | Edit allowed leaf fields by dotted path |
| `PUT /sites/{siteId}/config` | `update_site_config` | Import sections or update dotted paths |
| `POST /sites/{siteId}/config/generate` | `generate_site_config` | Generate configuration suggestions |

## Update selected fields

Use `PATCH /sites/{siteId}/config` (MCP `edit_site_config`) with an `edits` map:

```json
{
  "edits": {
    "content.brand.voice.prohibitedTerms": ["guaranteed results"]
  }
}
```

Only allowed leaf paths may be edited. Scalars and arrays replace their current values; send the complete array. `null` deletes a leaf. Object values and deletion of parent settings are rejected. A request may contain at most 100 paths. Use `describe_site_config` to discover editable paths rather than guessing them.

## Import whole sections

Use `PUT /sites/{siteId}/config` (MCP `update_site_config`) with a nested `config` document to import supplied sections. Each supplied section replaces its entire stored slot; read and preserve any existing values you want to keep. Do not mix a section import and dotted paths in one request.

The result includes `siteId`, `applied`, and the resulting editable `config`. Configuration persistence and propagation to the website are separate events; inspect activity before reporting that a visible change has shipped.

`PUT` also accepts dotted paths inside `config`; prefer `PATCH` with `edits` for focused changes. `get_site_settings` returns raw stored slots; use `get_site_config` for the configuration shape consumed by update operations.
