---
title: "Update Codex"
method: PATCH
path: "/api/voice-study/codex"
tags: ["Voice Study"]
---

# Update Codex

`PATCH /api/voice-study/codex`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/voice-study/codex`
- Auth: none declared. Required headers: `authorization`

voice_codex の特定軸を sho が UI で手動編集する。

手動編集された軸は manually_edited_keys に記録され、次回の自動蒸留
(refresh-all) で AI 出力で上書きされず、sho の意図が恒久的に保持される。

## Headers

- `authorization` string, required: Bearer <token>

## Request body

- CodexUpdateRequest
  - `shop_id` string, nullable
  - `key` string, required: 編集する軸: forbidden_expressions / preferred_expressions / signature_phrases / structural_conventions / forbidden_concepts
  - `value` unknown, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/soeru/apis/soeru-api.md) · [All operations](https://skmtc.dev/soeru/apis/soeru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/soeru/apis/soeru-api/revisions/63f8d371abed?raw)
