Closed fanuch closed 3 months ago
Hello, thanks for reporting. Please go ahead with the PR, happy to help if needed.
The documentation is correct. I was using a Docker image that was cached (and 7 months old) which had the wrong API documentation.
In forking and attempting a fix I noticed I was wrong.
Apologies for the confusion!
The swagger templated body is:
But the correct body is:
Kept on hitting 500 till I read the Actual API and noticed it expects type
Account
as the first param :)https://actualbudget.org/docs/api/reference/#examples
Relevant part in source: https://github.com/jhonderson/actual-http-api/blob/main/src/v1/routes/accounts.js#L177-L234
I'm sorry, I don't code JS/Swagger much so it will take me a bit, but I will try and raise a PR against this issue