set_category_target
Set, update, or clear a savings goal on a YNAB category. Define a one-time target with a due date or a recurring weekly, monthly, or yearly target.
Instructions
Sets, updates, or clears a target (goal) on a category. Provide either goal_target_date (a one-time target due by a specific date) or goal_frequency (a recurring target), not both. Pass clear_target: true to remove an existing target instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | No | The budget ID, or 'last-used' for the most recently used budget. | last-used |
| category_id | Yes | The category to set a target on. Look up with list_categories. | |
| goal_target | No | The target dollar amount, e.g. 500.00. Required unless clear_target is true. | |
| clear_target | No | Set true to remove the category's existing target instead of setting one. | |
| goal_frequency | No | Makes the target recurring at this cadence. Cannot be combined with goal_target_date. | |
| goal_target_date | No | Due date for the target, YYYY-MM-DD. Cannot be combined with goal_frequency. |