Rules

Reorder Rules

POST
/v1/households/{household_id}/rules/reorder

Replaces the household's rule priority order, with the first ID at priority 1.

Send every active rule ID exactly once—missing, duplicate, or unknown IDs return invalid_rule_ids. Reordering doesn't rerun rules on existing transactions.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

Request Body

application/json

rule_ids*array<string>

IDs of every active rule in the household, each exactly once, in the new order with the highest priority first. A missing, repeated, or unknown ID fails the request with invalid_rule_ids.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/rules/reorder" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "rule_ids": [    "Rl9cF3nV7sQa"  ]}'
{  "rules": [    {      "id": "Rl9cF3nV7sQa",      "priority": 1,      "account_ids": [        "Ac7kP2mN9qRs"      ],      "deleted_accounts": [],      "merchant_ids": null,      "deleted_merchants": [],      "category_ids": null,      "deleted_categories": [],      "amount_filter": {        "currency": "USD",        "direction": "expense",        "operator": "between",        "value": "20.00",        "value_upper": "200.00"      },      "classifications": [        "FOOD_AND_DRINK_GROCERIES"      ],      "name_conditions": [        {          "pattern": "trader joe",          "mode": "contains"        }      ],      "filter_uncategorized": false,      "set_category_id": "Ct5nR8wY1jFu",      "set_merchant_id": null,      "apply_tag_ids": [        "Tg8qN1cK5rWd"      ],      "deleted_tags": [],      "set_hidden": false,      "set_needs_review": null,      "applied_count": null    }  ]}