---
title: "Add Rule"
method: POST
path: "/api/soeru-link/blocks/{block_id}/rules"
tags: ["soeru Link Blocks"]
---

# Add Rule

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

Add a display rule to a block.

## Path parameters

- `block_id` string, required

## Headers

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

## Request body

- AddBlockRuleRequest
  - `rule_type` string, required
  - `condition` object, 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)
