Method: YNAB::CategoriesApi#update_month_category

Defined in:
lib/ynab/api/categories_api.rb

#update_month_category(budget_id, month, category_id, data, opts = {}) ⇒ SaveCategoryResponse

Update a category for a specific month Update a category for a specific month. Only ‘budgeted` amount can be updated.

Parameters:

  • budget_id (String)

    The id of the budget. "last-used" can be used to specify the last used budget and "default" can be used if default budget selection is enabled (see: api.ynab.com/#oauth-default-budget).

  • month (Date)

    The budget month in ISO format (e.g. 2016-12-01) ("current" can also be used to specify the current calendar month (UTC))

  • category_id (String)

    The id of the category

  • data (PatchMonthCategoryWrapper)

    The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



317
318
319
320
# File 'lib/ynab/api/categories_api.rb', line 317

def update_month_category(budget_id, month, category_id, data, opts = {})
  data, _status_code, _headers = update_month_category_with_http_info(budget_id, month, category_id, data, opts)
  data
end