---
title: "Update Auto Rule"
method: PATCH
path: "/api/voice-study/auto-rules"
tags: ["Voice Study"]
---

# Update Auto Rule

`PATCH /api/voice-study/auto-rules`

## 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/auto-rules`
- Auth: none declared. Required headers: `authorization`

自動ルール (Context Rule 由来) の ON/OFF を shop ごとに切替。

例: 「3回目のご注文」のように購入回数に触れたい店は
number_recall_forbidden を OFF にできる。default はすべて ON。

2026-05-12 sho 整理判断: 日本語固有ルール (二人称禁止等) は
culture_modules/ja_jp.py に移動 → /api/voice-study/culture-rules で扱う.
2026-05-22 P3: gift_inference (贈り主目線禁止) は明細書用途モジュールに
固定移設したため本トグルから除外。

## Headers

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

## Request body

- AutoRuleToggleRequest
  - `shop_id` string, nullable
  - `key` string, required: 切替するルール (推奨 5 件): customer_scene_assumption_forbidden / customer_intent_declaration_forbidden / vocabulary_matches_product_context / closing_must_express_gratitude / number_recall_forbidden
  - `enabled` boolean, 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)
