---
title: "Create Rule"
method: POST
path: "/api/soeru-link/rules"
tags: ["soeru Link"]
---

# Create Rule

`POST /api/soeru-link/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/soeru-link/rules`
- Auth: none declared. Required headers: `authorization`

Create a display rule for a menu.

## Headers

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

## Request body

- CreateRuleRequest: Create a display rule.
  - `menu_id` string, required
  - `rule_type` string, required
  - `condition` object
  - `enabled` boolean

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