---
title: "Update Learned Rule"
method: PATCH
path: "/api/resonance/voice-dna/learned-rules/{rule_id}"
tags: ["Resonance Engine"]
---

# Update Learned Rule

`PATCH /api/resonance/voice-dna/learned-rules/{rule_id}`

## 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/resonance/voice-dna/learned-rules/{rule_id}`
- Auth: none declared. Required headers: `authorization`

Update or delete a specific learned rule.

This modifies the Voice DNA or shop settings directly
to remove or adjust a specific learned behavior.

**Master-write model**: If this shop is synced from another shop
(voice_sync_source_id set), edits write to the source (master) shop's
voice_dna, so the change propagates to every shop in the sync group.

## Path parameters

- `rule_id` string, required

## Headers

- `x-shop-id` string, nullable: Optional shop ID
- `authorization` string, required: Bearer <token>

## Request body

- UpdateLearnedRuleRequest: Update or delete a specific learned rule.
  - `action` string, required
  - `instruction` string, nullable

## 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)
