Update a category
update_categoryModify a YNAB category’s name, note, or goal settings, and remove an existing goal by passing null as the target amount. Amounts are specified in milliunits (1000 = one currency unit).
Instructions
Updates a category's name, note, or goal fields. Passing null for goal_target removes any existing goal. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers PATCH /plans/{plan_id}/categories/{category_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plan_id": "<plan_id>",
"category_id": "<category_id>"
},
"name": "update_category"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| note | No | ||
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| category_id | Yes | ||
| goal_target | No | ||
| goal_frequency | No | ||
| goal_target_date | No | ||
| goal_needs_whole_amount | No |