Assign money
assign_moneyAssign an amount to a YNAB category from Ready to Assign, adding to its current assigned total; use a negative amount to return money to Ready to Assign.
Instructions
Assign more money to a category from Ready to Assign, or take some back.
This adds to what is already assigned: assigning 100 to a category with 250 assigned leaves 350 assigned. A negative amount returns money to Ready to Assign. Calling this twice assigns twice, so do not retry it blindly after an error; check the category with get_month_category first.
For categories with NEED targets that refill each month, the full target is usually assigned every month, whatever is available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Which plan month (default: "current"): • "current": This calendar month • "last": The previous calendar month • "next": The next calendar month • A date: The month containing that date, such as 2024-03-01 | current |
| amount | Yes | Amount in currency units to add to the assigned amount. Negative takes money back to Ready to Assign (required) | |
| category_id | Yes | Category to assign to (required) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Each category that changed, in the order they changed |