---
title: "Decide Rule Route"
method: POST
path: "/api/decisions/{decision_id}/rule"
tags: ["decisions"]
---

# Decide Rule Route

`POST /api/decisions/{decision_id}/rule`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/decisions/{decision_id}/rule`
- Auth: none declared

A board item's answer: accept the proposed rule, edit it, or decline
it. Persists through `service.decide_rule` to migration 0381's real
columns -- see the module docstring for why `tie.proposed_rule` itself
is still a stated "not yet" rather than a stored one.

## Path parameters

- `decision_id` string, uuid, required

## Request body

- RuleDecisionRequest: `{ disposition: RuleDisposition; rule_text: string | null }` -- `decisions.ts`'s `decideRule` body. `disposition` is validated against `domain.RULE_DISPOSITIONS` inside `service.decide_rule`, not here, so the one 422 message a caller sees says what a decision disposition IS rather than reciting a Pydantic enum error.
  - `disposition` string, required
  - `rule_text` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
