# Update a setting

Canonical: https://docs.shumoku.dev/ja/server/0.2.0/api/putSettingsByKey
Language: ja
Server documentation version: 0.2.0
Product version: 0.2.0
Channel: stable

Shumoku Server API · 0.2.0 · Settings

# Update a setting

[OpenAPIソース](https://github.com/konoe-akitoshi/shumoku/blob/server-v0.2.0/apps/server/api/openapi.json)

APIの説明は英語のOpenAPI canonical sourceを表示しています。

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

## 認証

sessionCookie / bearerAuth

## リクエストボディ

`SettingValue` · application/json · 必須

## レスポンス

| ステータス | 説明 | スキーマ |
| --- | --- | --- |
| `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.2.0/apps/server/api/openapi.json)
