[PR #7096] [WIP] [AI] Correct API docs to match actual implementation #6938

Open
opened 2026-02-28 21:34:37 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/7096

State: open
Merged: No


Description

The API reference documentation was wrong about several method signatures. I found these while building Actual Budget agent skills and comparing the docs to the actual implementation in packages/api/methods.ts.

Fixes:

  • updateRule takes the full rule object, not (id, fields) like other update methods
  • getPayeeRules returns Rule[], not PayeeRule[]
  • createSchedule, init, runImport, batchBudgetUpdates had unnecessary nesting in the docs - their arguments are actually flat
  • getCommonPayees wasn't documented at all

None - found this while working with the API directly.

Testing

Compared every signature change against the actual implementation in packages/api/methods.ts. Docs only, no code changes.

Checklist

  • Release notes added
  • No regressions (docs change)
  • Self-reviewed
**Original Pull Request:** https://github.com/actualbudget/actual/pull/7096 **State:** open **Merged:** No --- <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description The API reference documentation was wrong about several method signatures. I found these while building [Actual Budget agent skills](https://github.com/tifandotme/dotfiles/tree/master/dot_agents/skills) and comparing the docs to the actual implementation in `packages/api/methods.ts`. Fixes: - `updateRule` takes the full rule object, not `(id, fields)` like other update methods - `getPayeeRules` returns `Rule[]`, not `PayeeRule[]` - `createSchedule`, `init`, `runImport`, `batchBudgetUpdates` had unnecessary nesting in the docs - their arguments are actually flat - `getCommonPayees` wasn't documented at all ## Related issue(s) None - found this while working with the API directly. ## Testing Compared every signature change against the actual implementation in `packages/api/methods.ts`. Docs only, no code changes. ## Checklist - [x] Release notes added - [x] No regressions (docs change) - [x] Self-reviewed <!--- actual-bot-sections --->
GiteaMirror added the pull-request label 2026-02-28 21:34:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6938