ynab 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -30
  3. data/lib/ynab.rb +4 -1
  4. data/lib/ynab/api/categories_api.rb +10 -10
  5. data/lib/ynab/api/deprecated_api.rb +81 -0
  6. data/lib/ynab/api/months_api.rb +2 -2
  7. data/lib/ynab/api/payee_locations_api.rb +2 -2
  8. data/lib/ynab/api/transactions_api.rb +12 -58
  9. data/lib/ynab/models/bulk_ids.rb +1 -1
  10. data/lib/ynab/models/category.rb +3 -3
  11. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  12. data/lib/ynab/models/month_detail.rb +1 -1
  13. data/lib/ynab/models/transactions_wrapper.rb +19 -4
  14. data/lib/ynab/overrides/transactions_api.rb +44 -0
  15. data/lib/ynab/version.rb +1 -1
  16. data/spec/api/transactions_spec.rb +23 -1
  17. data/spec/fixtures/vcr_cassettes/create_transactions.yml +46 -0
  18. metadata +6 -105
  19. data/Gemfile +0 -7
  20. data/Gemfile.lock +0 -44
  21. data/Rakefile +0 -34
  22. data/config.json +0 -10
  23. data/docs/Account.md +0 -18
  24. data/docs/AccountResponse.md +0 -8
  25. data/docs/AccountWrapper.md +0 -8
  26. data/docs/AccountsApi.md +0 -45
  27. data/docs/AccountsResponse.md +0 -8
  28. data/docs/AccountsWrapper.md +0 -8
  29. data/docs/BudgetDetail.md +0 -22
  30. data/docs/BudgetDetailResponse.md +0 -8
  31. data/docs/BudgetDetailWrapper.md +0 -9
  32. data/docs/BudgetSettings.md +0 -9
  33. data/docs/BudgetSettingsResponse.md +0 -8
  34. data/docs/BudgetSettingsWrapper.md +0 -8
  35. data/docs/BudgetSummary.md +0 -12
  36. data/docs/BudgetSummaryResponse.md +0 -8
  37. data/docs/BudgetSummaryWrapper.md +0 -8
  38. data/docs/BudgetsApi.md +0 -60
  39. data/docs/BulkIdWrapper.md +0 -8
  40. data/docs/BulkIds.md +0 -9
  41. data/docs/BulkResponse.md +0 -8
  42. data/docs/BulkTransactionCreateResponse.md +0 -8
  43. data/docs/BulkTransactionIds.md +0 -8
  44. data/docs/BulkTransactions.md +0 -8
  45. data/docs/CategoriesApi.md +0 -86
  46. data/docs/CategoriesResponse.md +0 -8
  47. data/docs/Category.md +0 -22
  48. data/docs/CategoryGroup.md +0 -11
  49. data/docs/CategoryGroupWithCategories.md +0 -12
  50. data/docs/CategoryGroupsWrapper.md +0 -8
  51. data/docs/CategoryResponse.md +0 -8
  52. data/docs/CategoryWrapper.md +0 -8
  53. data/docs/CurrencyFormat.md +0 -15
  54. data/docs/DateFormat.md +0 -8
  55. data/docs/ErrorDetail.md +0 -10
  56. data/docs/ErrorResponse.md +0 -8
  57. data/docs/HybridTransaction.md +0 -26
  58. data/docs/HybridTransactionsResponse.md +0 -8
  59. data/docs/HybridTransactionsWrapper.md +0 -8
  60. data/docs/MonthDetail.md +0 -15
  61. data/docs/MonthDetailResponse.md +0 -8
  62. data/docs/MonthDetailWrapper.md +0 -8
  63. data/docs/MonthSummariesResponse.md +0 -8
  64. data/docs/MonthSummariesWrapper.md +0 -8
  65. data/docs/MonthSummary.md +0 -14
  66. data/docs/MonthsApi.md +0 -45
  67. data/docs/Payee.md +0 -11
  68. data/docs/PayeeLocation.md +0 -12
  69. data/docs/PayeeLocationResponse.md +0 -8
  70. data/docs/PayeeLocationWrapper.md +0 -8
  71. data/docs/PayeeLocationsApi.md +0 -64
  72. data/docs/PayeeLocationsResponse.md +0 -8
  73. data/docs/PayeeLocationsWrapper.md +0 -8
  74. data/docs/PayeeResponse.md +0 -8
  75. data/docs/PayeeWrapper.md +0 -8
  76. data/docs/PayeesApi.md +0 -45
  77. data/docs/PayeesResponse.md +0 -8
  78. data/docs/PayeesWrapper.md +0 -8
  79. data/docs/SaveMonthCategory.md +0 -8
  80. data/docs/SaveMonthCategoryWrapper.md +0 -8
  81. data/docs/SaveTransaction.md +0 -18
  82. data/docs/SaveTransactionWrapper.md +0 -8
  83. data/docs/SaveTransactionsResponse.md +0 -8
  84. data/docs/SaveTransactionsResponseData.md +0 -11
  85. data/docs/SaveTransactionsWrapper.md +0 -9
  86. data/docs/ScheduledSubTransaction.md +0 -15
  87. data/docs/ScheduledTransactionDetail.md +0 -23
  88. data/docs/ScheduledTransactionResponse.md +0 -8
  89. data/docs/ScheduledTransactionSummary.md +0 -19
  90. data/docs/ScheduledTransactionWrapper.md +0 -8
  91. data/docs/ScheduledTransactionsApi.md +0 -45
  92. data/docs/ScheduledTransactionsResponse.md +0 -8
  93. data/docs/ScheduledTransactionsWrapper.md +0 -8
  94. data/docs/SubTransaction.md +0 -15
  95. data/docs/TransactionDetail.md +0 -25
  96. data/docs/TransactionResponse.md +0 -8
  97. data/docs/TransactionSummary.md +0 -21
  98. data/docs/TransactionWrapper.md +0 -8
  99. data/docs/TransactionsApi.md +0 -168
  100. data/docs/TransactionsResponse.md +0 -8
  101. data/docs/TransactionsWrapper.md +0 -8
  102. data/docs/User.md +0 -8
  103. data/docs/UserApi.md +0 -23
  104. data/docs/UserResponse.md +0 -8
  105. data/docs/UserWrapper.md +0 -8
  106. data/examples/budget-list.rb +0 -24
  107. data/examples/budget-month.rb +0 -35
  108. data/examples/category-balance.rb +0 -26
  109. data/examples/create-multiple-transactions.rb +0 -44
  110. data/examples/create-transaction.rb +0 -31
  111. data/examples/update-category-budgeted.rb +0 -23
  112. data/pkg/ynab-1.0.0.gem +0 -0
  113. data/pkg/ynab-1.1.0.gem +0 -0
  114. data/pkg/ynab-1.3.0.gem +0 -0
  115. data/pkg/ynab-1.4.0.gem +0 -0
  116. data/spec-v1-swagger.json +0 -2729
  117. data/swagger-templates/api_client.mustache +0 -386
  118. data/swagger-templates/api_doc.mustache +0 -32
  119. data/swagger-templates/gem.mustache +0 -83
  120. data/swagger-templates/gemspec.mustache +0 -37
  121. data/ynab.gemspec +0 -40
data/Rakefile DELETED
@@ -1,34 +0,0 @@
1
- begin
2
- require 'rspec/core/rake_task'
3
- require 'bundler/gem_tasks'
4
-
5
- RSpec::Core::RakeTask.new(:spec) do |t|
6
- t.rspec_opts = "-fd"
7
- end
8
- rescue LoadError
9
- # no rspec available
10
- end
11
-
12
- task :default => [:spec]
13
-
14
- desc "Run Swagger Code Generator to update the client from the Swagger spec"
15
- task :generate do
16
- # Download latest swagger spec
17
- spec_filename = 'spec-v1-swagger.json'
18
- sh "rm #{spec_filename} && wget https://api.youneedabudget.com/papi/#{spec_filename}"
19
-
20
- # Use Docker to codegen ruby based on the swagger spec
21
- sh "docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate"\
22
- " -i /local/spec-v1-swagger.json"\
23
- " -l ruby"\
24
- " -c /local/config.json -o /local"\
25
- " -t /local/swagger-templates"
26
- end
27
-
28
- task :commit_version_bump do
29
- sh "git add config.json lib/ynab/version.rb Gemfile.lock && git diff-index --quiet HEAD || git commit -m 'Bumping version for release'"
30
- end
31
-
32
- desc "Bump version, run specs build a gem and release on RubyGems"
33
- task :publish => ['generate', 'commit_version_bump', 'spec', 'release']
34
-
@@ -1,10 +0,0 @@
1
- {
2
- "gemName": "ynab",
3
- "moduleName": "YNAB",
4
- "gemVersion": "1.5.0",
5
- "gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
6
- "gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
7
- "gemLicense": "Apache-2.0",
8
- "gemAuthor": "You Need A Budget, LLC",
9
- "gemAuthorEmail": "help@youneedabudget.com"
10
- }
@@ -1,18 +0,0 @@
1
- # YNAB::Account
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **name** | **String** | |
8
- **type** | **String** | The type of account. Note: payPal, merchantAccount, investmentAccount, and mortgage types have been deprecated and will be removed in the future. |
9
- **on_budget** | **BOOLEAN** | Whether this account is on budget or not |
10
- **closed** | **BOOLEAN** | Whether this account is closed or not |
11
- **note** | **String** | |
12
- **balance** | **Integer** | The current balance of the account in milliunits format |
13
- **cleared_balance** | **Integer** | The current cleared balance of the account in milliunits format |
14
- **uncleared_balance** | **Integer** | The current uncleared balance of the account in milliunits format |
15
- **transfer_payee_id** | **String** | The payee id which should be used when transferring to this account |
16
- **deleted** | **BOOLEAN** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. |
17
-
18
-
@@ -1,8 +0,0 @@
1
- # YNAB::AccountResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**AccountWrapper**](AccountWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::AccountWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **account** | [**Account**](Account.md) | |
7
-
8
-
@@ -1,45 +0,0 @@
1
- # YNAB::AccountsApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_account_by_id**](AccountsApi.md#get_account_by_id) | **GET** /budgets/{budget_id}/accounts/{account_id} | Single account
8
- [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /budgets/{budget_id}/accounts | Account list
9
-
10
-
11
- # **get_account_by_id**
12
- > AccountResponse get_account_by_id(budget_id, account_id)
13
-
14
- Single account
15
-
16
- Returns a single account
17
-
18
- ### Parameters
19
-
20
- Name | Type | Description | Notes
21
- ------------- | ------------- | ------------- | -------------
22
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
23
- **account_id** | [**String**](.md)| The id of the account |
24
-
25
- ### Return type
26
-
27
- [**AccountResponse**](AccountResponse.md)
28
-
29
- # **get_accounts**
30
- > AccountsResponse get_accounts(budget_id)
31
-
32
- Account list
33
-
34
- Returns all accounts
35
-
36
- ### Parameters
37
-
38
- Name | Type | Description | Notes
39
- ------------- | ------------- | ------------- | -------------
40
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
41
-
42
- ### Return type
43
-
44
- [**AccountsResponse**](AccountsResponse.md)
45
-
@@ -1,8 +0,0 @@
1
- # YNAB::AccountsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**AccountsWrapper**](AccountsWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::AccountsWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **accounts** | [**Array<Account>**](Account.md) | |
7
-
8
-
@@ -1,22 +0,0 @@
1
- # YNAB::BudgetDetail
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **name** | **String** | |
8
- **last_modified_on** | **DateTime** | The last time any changes were made to the budget from either a web or mobile client. | [optional]
9
- **date_format** | [**DateFormat**](DateFormat.md) | | [optional]
10
- **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional]
11
- **accounts** | [**Array<Account>**](Account.md) | | [optional]
12
- **payees** | [**Array<Payee>**](Payee.md) | | [optional]
13
- **payee_locations** | [**Array<PayeeLocation>**](PayeeLocation.md) | | [optional]
14
- **category_groups** | [**Array<CategoryGroup>**](CategoryGroup.md) | | [optional]
15
- **categories** | [**Array<Category>**](Category.md) | | [optional]
16
- **months** | [**Array<MonthDetail>**](MonthDetail.md) | | [optional]
17
- **transactions** | [**Array<TransactionSummary>**](TransactionSummary.md) | | [optional]
18
- **subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | | [optional]
19
- **scheduled_transactions** | [**Array<ScheduledTransactionSummary>**](ScheduledTransactionSummary.md) | | [optional]
20
- **scheduled_subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | | [optional]
21
-
22
-
@@ -1,8 +0,0 @@
1
- # YNAB::BudgetDetailResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**BudgetDetailWrapper**](BudgetDetailWrapper.md) | |
7
-
8
-
@@ -1,9 +0,0 @@
1
- # YNAB::BudgetDetailWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **budget** | [**BudgetDetail**](BudgetDetail.md) | |
7
- **server_knowledge** | **Integer** | The knowledge of the server |
8
-
9
-
@@ -1,9 +0,0 @@
1
- # YNAB::BudgetSettings
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **date_format** | [**DateFormat**](DateFormat.md) | |
7
- **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | |
8
-
9
-
@@ -1,8 +0,0 @@
1
- # YNAB::BudgetSettingsResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**BudgetSettingsWrapper**](BudgetSettingsWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::BudgetSettingsWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **settings** | [**BudgetSettings**](BudgetSettings.md) | |
7
-
8
-
@@ -1,12 +0,0 @@
1
- # YNAB::BudgetSummary
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | |
7
- **name** | **String** | |
8
- **last_modified_on** | **DateTime** | The last time any changes were made to the budget from either a web or mobile client. | [optional]
9
- **date_format** | [**DateFormat**](DateFormat.md) | | [optional]
10
- **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional]
11
-
12
-
@@ -1,8 +0,0 @@
1
- # YNAB::BudgetSummaryResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**BudgetSummaryWrapper**](BudgetSummaryWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::BudgetSummaryWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **budgets** | [**Array<BudgetSummary>**](BudgetSummary.md) | |
7
-
8
-
@@ -1,60 +0,0 @@
1
- # YNAB::BudgetsApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_budget_by_id**](BudgetsApi.md#get_budget_by_id) | **GET** /budgets/{budget_id} | Single budget
8
- [**get_budget_settings_by_id**](BudgetsApi.md#get_budget_settings_by_id) | **GET** /budgets/{budget_id}/settings | Budget Settings
9
- [**get_budgets**](BudgetsApi.md#get_budgets) | **GET** /budgets | List budgets
10
-
11
-
12
- # **get_budget_by_id**
13
- > BudgetDetailResponse get_budget_by_id(budget_id, opts)
14
-
15
- Single budget
16
-
17
- Returns a single budget with all related entities. This resource is effectively a full budget export.
18
-
19
- ### Parameters
20
-
21
- Name | Type | Description | Notes
22
- ------------- | ------------- | ------------- | -------------
23
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
24
- **last_knowledge_of_server** | **Integer**| The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included. | [optional]
25
-
26
- ### Return type
27
-
28
- [**BudgetDetailResponse**](BudgetDetailResponse.md)
29
-
30
- # **get_budget_settings_by_id**
31
- > BudgetSettingsResponse get_budget_settings_by_id(budget_id)
32
-
33
- Budget Settings
34
-
35
- Returns settings for a budget
36
-
37
- ### Parameters
38
-
39
- Name | Type | Description | Notes
40
- ------------- | ------------- | ------------- | -------------
41
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
42
-
43
- ### Return type
44
-
45
- [**BudgetSettingsResponse**](BudgetSettingsResponse.md)
46
-
47
- # **get_budgets**
48
- > BudgetSummaryResponse get_budgets
49
-
50
- List budgets
51
-
52
- Returns budgets list with summary information
53
-
54
- ### Parameters
55
- This endpoint does not need any parameter.
56
-
57
- ### Return type
58
-
59
- [**BudgetSummaryResponse**](BudgetSummaryResponse.md)
60
-
@@ -1,8 +0,0 @@
1
- # YNAB::BulkIdWrapper
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **bulk** | [**BulkIds**](BulkIds.md) | |
7
-
8
-
@@ -1,9 +0,0 @@
1
- # YNAB::BulkIds
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction_ids** | **Array<String>** | The list of Transaction IDs that were created. |
7
- **duplicate_import_ids** | **Array<String>** | If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list. |
8
-
9
-
@@ -1,8 +0,0 @@
1
- # YNAB::BulkResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**BulkIdWrapper**](BulkIdWrapper.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::BulkTransactionCreateResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **data** | [**BulkTransactionIds**](BulkTransactionIds.md) | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::BulkTransactionIds
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transaction_ids** | **Array<String>** | |
7
-
8
-
@@ -1,8 +0,0 @@
1
- # YNAB::BulkTransactions
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **transactions** | [**Array<SaveTransaction>**](SaveTransaction.md) | |
7
-
8
-
@@ -1,86 +0,0 @@
1
- # YNAB::CategoriesApi
2
-
3
- All URIs are relative to *https://api.youneedabudget.com/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_categories**](CategoriesApi.md#get_categories) | **GET** /budgets/{budget_id}/categories | List categories
8
- [**get_category_by_id**](CategoriesApi.md#get_category_by_id) | **GET** /budgets/{budget_id}/categories/{category_id} | Single category
9
- [**get_month_category_by_id**](CategoriesApi.md#get_month_category_by_id) | **GET** /budgets/{budget_id}/months/{month}/categories/{category_id} | Single category for a specific budget month
10
- [**update_month_category**](CategoriesApi.md#update_month_category) | **PATCH** /budgets/{budget_id}/months/{month}/categories/{category_id} | Update an existing month category
11
-
12
-
13
- # **get_categories**
14
- > CategoriesResponse get_categories(budget_id)
15
-
16
- List categories
17
-
18
- Returns all categories grouped by category group
19
-
20
- ### Parameters
21
-
22
- Name | Type | Description | Notes
23
- ------------- | ------------- | ------------- | -------------
24
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
25
-
26
- ### Return type
27
-
28
- [**CategoriesResponse**](CategoriesResponse.md)
29
-
30
- # **get_category_by_id**
31
- > CategoryResponse get_category_by_id(budget_id, category_id)
32
-
33
- Single category
34
-
35
- Returns a single category
36
-
37
- ### Parameters
38
-
39
- Name | Type | Description | Notes
40
- ------------- | ------------- | ------------- | -------------
41
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
42
- **category_id** | [**String**](.md)| The id of the category |
43
-
44
- ### Return type
45
-
46
- [**CategoryResponse**](CategoryResponse.md)
47
-
48
- # **get_month_category_by_id**
49
- > CategoryResponse get_month_category_by_id(budget_id, month, category_id)
50
-
51
- Single category for a specific budget month
52
-
53
- Returns a single category for a specific budget month
54
-
55
- ### Parameters
56
-
57
- Name | Type | Description | Notes
58
- ------------- | ------------- | ------------- | -------------
59
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
60
- **month** | **Date**| the budget month in ISO format (e.g. 2016-12-30). (\"current\" can also be used to specify the current calendar month (UTC)) |
61
- **category_id** | [**String**](.md)| The id of the category |
62
-
63
- ### Return type
64
-
65
- [**CategoryResponse**](CategoryResponse.md)
66
-
67
- # **update_month_category**
68
- > CategoryResponse update_month_category(budget_id, month, category_id, month_category)
69
-
70
- Update an existing month category
71
-
72
- Update an existing month category
73
-
74
- ### Parameters
75
-
76
- Name | Type | Description | Notes
77
- ------------- | ------------- | ------------- | -------------
78
- **budget_id** | [**String**](.md)| The id of the budget (\"last-used\" can also be used to specify the last used budget) |
79
- **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). |
80
- **category_id** | [**String**](.md)| The id of the category |
81
- **month_category** | [**SaveMonthCategoryWrapper**](SaveMonthCategoryWrapper.md)| The month category to update |
82
-
83
- ### Return type
84
-
85
- [**CategoryResponse**](CategoryResponse.md)
86
-