New goal
create_goalCreate a goal on an account: save (a target by a deadline or as soon as possible), emergency (months: 3, 6 or 12 usual months of bills and everyday spending; target computed when left out) or debt (a credit or loan account paid down to 0; target = today’s debt when left out). Save and emergency goals go on a savings, investment or other account (never a card or cash); money already there counts, and goals sharing an account split its balance in priority order, the top one filling first. One active goal on the free plan (done goals don’t count). Amounts are integers in minor units (kopecks, cents): 45000 = 450.00. Dates are YYYY-MM-DD in the family time zone; a month is a budget period YYYY-MM (the one that starts in that month).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | ||
| kind | Yes | ||
| name | Yes | ||
| color | No | ||
| months | No | ||
| target | No | ||
| monthly | No | ||
| currency | No | ||
| deadline | No | ||
| accountId | Yes |