Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow updating account notes via API call #2050

Closed
2 tasks done
crazydevman opened this issue Dec 8, 2023 · 1 comment
Closed
2 tasks done

[Feature] Allow updating account notes via API call #2050

crazydevman opened this issue Dec 8, 2023 · 1 comment
Labels
feature This issue is a feature request needs votes Please upvote this feature request if you would like to see it implemented!

Comments

@crazydevman
Copy link

Verified feature request does not already exist?

  • I have searched and found no existing issue

💻

  • Would you like to implement this feature?

Pitch: what problem are you trying to solve?

The API allows developers to programmatically create accounts, update that account's name, add transactions, etc. However, it's currently not possible to update the account's notes via API. If added to the API, this would allow tools like data importers or sync scripts to update the account's notes field.

Describe your ideal solution to this problem

Example implementation pseudo code:

packages/api/methods/js:

export function saveNotes(id, notes) {
  return send('api/notes-save', { id, notes });
}

packages/loot-core/src/server/api.ts:

handlers['api/notes-save'] = withMutation(async function ({ id, note }) {
  checkFileOpen();
  return handlers['notes-save']({
    id,
    note
  });
});

Example API usage:

await api.saveNotes(accountId, "Example note on my account");

Teaching and learning

API is documented online: https://actualbudget.com/docs/developers/API/

@crazydevman crazydevman added the feature This issue is a feature request label Dec 8, 2023
@github-actions github-actions bot added the needs votes Please upvote this feature request if you would like to see it implemented! label Dec 8, 2023
Copy link
Contributor

github-actions bot commented Dec 8, 2023

✨ Thanks for sharing your idea! ✨

This repository uses lodash style issue management for enhancements. That means enhancement issues are automatically closed. This doesn’t mean we don’t accept feature requests, though! We will consider implementing ones that receive many upvotes, and we welcome contributions for any feature requests marked as needing votes (just post a comment first so we can help you make a successful contribution).

The enhancement backlog can be found here: https://github.com/actualbudget/actual/issues?q=label%3A%22needs+votes%22+sort%3Areactions-%2B1-desc+

Don’t forget to upvote the top comment with 👍!

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue is a feature request needs votes Please upvote this feature request if you would like to see it implemented!
Projects
None yet
Development

No branches or pull requests

1 participant