# Update a setting

Canonical: https://docs.shumoku.dev/en/server/0.3.0-beta.4/api/putSettingsByKey
Language: en
Server documentation version: 0.3.0-beta.4
Product version: 0.3.0-beta.4
Channel: beta

This documentation describes a prerelease Server build.

Shumoku Server API · 0.3.0-beta.4 · Settings

# Update a setting

[OpenAPI source](https://github.com/konoe-akitoshi/shumoku/blob/server-v0.3.0-beta.4/apps/server/api/openapi.json)

```
PUT /api/settings/{key}
```

## Authentication

sessionCookie / bearerAuth

## Request body

`SettingValue` · application/json · required

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `200` | Updated setting | `Setting` |
| `400` | The request did not match the API contract | `Error` |
| `401` | Authentication is required | `Error` |

[`apps/server/api/openapi.json`](https://github.com/konoe-akitoshi/shumoku/blob/server-v0.3.0-beta.4/apps/server/api/openapi.json)
