ynab-api 4.0.0

OpenAPI-generated API bindings for the YNAB API
Documentation
# \BudgetsApi

All URIs are relative to *https://api.ynab.com/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_budget_by_id**]BudgetsApi.md#get_budget_by_id | **GET** /budgets/{budget_id} | Single budget
[**get_budget_settings_by_id**]BudgetsApi.md#get_budget_settings_by_id | **GET** /budgets/{budget_id}/settings | Budget Settings
[**get_budgets**]BudgetsApi.md#get_budgets | **GET** /budgets | List budgets



## get_budget_by_id

> models::BudgetDetailResponse get_budget_by_id(budget_id, last_knowledge_of_server)
Single budget

Returns a single budget with all related entities.  This resource is effectively a full budget export.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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: https://api.ynab.com/#oauth-default-budget). | [required] |
**last_knowledge_of_server** | Option<**i64**> | The starting server knowledge.  If provided, only entities that have changed since `last_knowledge_of_server` will be included. |  |

### Return type

[**models::BudgetDetailResponse**](BudgetDetailResponse.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_budget_settings_by_id

> models::BudgetSettingsResponse get_budget_settings_by_id(budget_id)
Budget Settings

Returns settings for a budget

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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: https://api.ynab.com/#oauth-default-budget). | [required] |

### Return type

[**models::BudgetSettingsResponse**](BudgetSettingsResponse.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_budgets

> models::BudgetSummaryResponse get_budgets(include_accounts)
List budgets

Returns budgets list with summary information

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**include_accounts** | Option<**bool**> | Whether to include the list of budget accounts |  |

### Return type

[**models::BudgetSummaryResponse**](BudgetSummaryResponse.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)