Package cm.xd.genapi.ynab.api
Class CategoriesApi
java.lang.Object
cm.xd.genapi.ynab.api.CategoriesApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCategory(String planId, PostCategoryWrapper data) Create a category Creates a new categoryokhttp3.CallcreateCategoryAsync(String planId, PostCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) Create a category (asynchronously) Creates a new categoryokhttp3.CallcreateCategoryCall(String planId, PostCategoryWrapper data, ApiCallback _callback) Build call for createCategorycreateCategoryGroup(String planId, PostCategoryGroupWrapper data) Create a category group Creates a new category groupokhttp3.CallcreateCategoryGroupAsync(String planId, PostCategoryGroupWrapper data, ApiCallback<SaveCategoryGroupResponse> _callback) Create a category group (asynchronously) Creates a new category groupokhttp3.CallcreateCategoryGroupCall(String planId, PostCategoryGroupWrapper data, ApiCallback _callback) Build call for createCategoryGroupcreateCategoryGroupWithHttpInfo(String planId, PostCategoryGroupWrapper data) Create a category group Creates a new category groupcreateCategoryWithHttpInfo(String planId, PostCategoryWrapper data) Create a category Creates a new categorygetCategories(String planId, Long lastKnowledgeOfServer) Get all categories Returns all categories grouped by category group.okhttp3.CallgetCategoriesAsync(String planId, Long lastKnowledgeOfServer, ApiCallback<CategoriesResponse> _callback) Get all categories (asynchronously) Returns all categories grouped by category group.okhttp3.CallgetCategoriesCall(String planId, Long lastKnowledgeOfServer, ApiCallback _callback) Build call for getCategoriesgetCategoriesWithHttpInfo(String planId, Long lastKnowledgeOfServer) Get all categories Returns all categories grouped by category group.getCategoryById(String planId, String categoryId) Get a category Returns a single category.okhttp3.CallgetCategoryByIdAsync(String planId, String categoryId, ApiCallback<CategoryResponse> _callback) Get a category (asynchronously) Returns a single category.okhttp3.CallgetCategoryByIdCall(String planId, String categoryId, ApiCallback _callback) Build call for getCategoryByIdgetCategoryByIdWithHttpInfo(String planId, String categoryId) Get a category Returns a single category.intgetMonthCategoryById(String planId, LocalDate month, String categoryId) Get a category for a specific plan month Returns a single category for a specific plan month.okhttp3.CallgetMonthCategoryByIdAsync(String planId, LocalDate month, String categoryId, ApiCallback<CategoryResponse> _callback) Get a category for a specific plan month (asynchronously) Returns a single category for a specific plan month.okhttp3.CallgetMonthCategoryByIdCall(String planId, LocalDate month, String categoryId, ApiCallback _callback) Build call for getMonthCategoryByIdgetMonthCategoryByIdWithHttpInfo(String planId, LocalDate month, String categoryId) Get a category for a specific plan month Returns a single category for a specific plan month.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) updateCategory(String planId, String categoryId, PatchCategoryWrapper data) Update a category Update a categoryokhttp3.CallupdateCategoryAsync(String planId, String categoryId, PatchCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) Update a category (asynchronously) Update a categoryokhttp3.CallupdateCategoryCall(String planId, String categoryId, PatchCategoryWrapper data, ApiCallback _callback) Build call for updateCategoryupdateCategoryGroup(String planId, String categoryGroupId, PatchCategoryGroupWrapper data) Update a category group Update a category groupokhttp3.CallupdateCategoryGroupAsync(String planId, String categoryGroupId, PatchCategoryGroupWrapper data, ApiCallback<SaveCategoryGroupResponse> _callback) Update a category group (asynchronously) Update a category groupokhttp3.CallupdateCategoryGroupCall(String planId, String categoryGroupId, PatchCategoryGroupWrapper data, ApiCallback _callback) Build call for updateCategoryGroupupdateCategoryGroupWithHttpInfo(String planId, String categoryGroupId, PatchCategoryGroupWrapper data) Update a category group Update a category groupupdateCategoryWithHttpInfo(String planId, String categoryId, PatchCategoryWrapper data) Update a category Update a categoryupdateMonthCategory(String planId, LocalDate month, String categoryId, PatchMonthCategoryWrapper data) Update a category for a specific month Update a category for a specific month.okhttp3.CallupdateMonthCategoryAsync(String planId, LocalDate month, String categoryId, PatchMonthCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) Update a category for a specific month (asynchronously) Update a category for a specific month.okhttp3.CallupdateMonthCategoryCall(String planId, LocalDate month, String categoryId, PatchMonthCategoryWrapper data, ApiCallback _callback) Build call for updateMonthCategoryupdateMonthCategoryWithHttpInfo(String planId, LocalDate month, String categoryId, PatchMonthCategoryWrapper data) Update a category for a specific month Update a category for a specific month.
-
Constructor Details
-
CategoriesApi
public CategoriesApi() -
CategoriesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createCategoryCall
public okhttp3.Call createCategoryCall(@Nonnull String planId, @Nonnull PostCategoryWrapper data, ApiCallback _callback) throws ApiException Build call for createCategory- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category to create. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 The category was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategory
public SaveCategoryResponse createCategory(@Nonnull String planId, @Nonnull PostCategoryWrapper data) throws ApiException Create a category Creates a new category- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category to create. (required)- Returns:
- SaveCategoryResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 The category was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryWithHttpInfo
public ApiResponse<SaveCategoryResponse> createCategoryWithHttpInfo(@Nonnull String planId, @Nonnull PostCategoryWrapper data) throws ApiException Create a category Creates a new category- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category to create. (required)- Returns:
- ApiResponse<SaveCategoryResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 The category was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryAsync
public okhttp3.Call createCategoryAsync(@Nonnull String planId, @Nonnull PostCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) throws ApiException Create a category (asynchronously) Creates a new category- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category to create. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 The category was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryGroupCall
public okhttp3.Call createCategoryGroupCall(@Nonnull String planId, @Nonnull PostCategoryGroupWrapper data, ApiCallback _callback) throws ApiException Build call for createCategoryGroup- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category group to create. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 The category group was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryGroup
public SaveCategoryGroupResponse createCategoryGroup(@Nonnull String planId, @Nonnull PostCategoryGroupWrapper data) throws ApiException Create a category group Creates a new category group- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category group to create. (required)- Returns:
- SaveCategoryGroupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 The category group was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryGroupWithHttpInfo
public ApiResponse<SaveCategoryGroupResponse> createCategoryGroupWithHttpInfo(@Nonnull String planId, @Nonnull PostCategoryGroupWrapper data) throws ApiException Create a category group Creates a new category group- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category group to create. (required)- Returns:
- ApiResponse<SaveCategoryGroupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 The category group was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
createCategoryGroupAsync
public okhttp3.Call createCategoryGroupAsync(@Nonnull String planId, @Nonnull PostCategoryGroupWrapper data, ApiCallback<SaveCategoryGroupResponse> _callback) throws ApiException Create a category group (asynchronously) Creates a new category group- Parameters:
planId- The id of the plan (\"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan) (required)data- The category group to create. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 The category group was successfully created - 400 The request could not be understood due to malformed syntax or validation error(s). -
-
getCategoriesCall
public okhttp3.Call getCategoriesCall(@Nonnull String planId, @Nullable Long lastKnowledgeOfServer, ApiCallback _callback) throws ApiException Build call for getCategories- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)lastKnowledgeOfServer- The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The categories grouped by category group - 404 No categories were found -
-
getCategories
public CategoriesResponse getCategories(@Nonnull String planId, @Nullable Long lastKnowledgeOfServer) throws ApiException Get all categories Returns all categories grouped by category group. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)lastKnowledgeOfServer- The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)- Returns:
- CategoriesResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The categories grouped by category group - 404 No categories were found -
-
getCategoriesWithHttpInfo
public ApiResponse<CategoriesResponse> getCategoriesWithHttpInfo(@Nonnull String planId, @Nullable Long lastKnowledgeOfServer) throws ApiException Get all categories Returns all categories grouped by category group. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)lastKnowledgeOfServer- The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)- Returns:
- ApiResponse<CategoriesResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The categories grouped by category group - 404 No categories were found -
-
getCategoriesAsync
public okhttp3.Call getCategoriesAsync(@Nonnull String planId, @Nullable Long lastKnowledgeOfServer, ApiCallback<CategoriesResponse> _callback) throws ApiException Get all categories (asynchronously) Returns all categories grouped by category group. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)lastKnowledgeOfServer- The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The categories grouped by category group - 404 No categories were found -
-
getCategoryByIdCall
public okhttp3.Call getCategoryByIdCall(@Nonnull String planId, @Nonnull String categoryId, ApiCallback _callback) throws ApiException Build call for getCategoryById- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The requested category - 404 The category was not found -
-
getCategoryById
public CategoryResponse getCategoryById(@Nonnull String planId, @Nonnull String categoryId) throws ApiException Get a category Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)- Returns:
- CategoryResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The requested category - 404 The category was not found -
-
getCategoryByIdWithHttpInfo
public ApiResponse<CategoryResponse> getCategoryByIdWithHttpInfo(@Nonnull String planId, @Nonnull String categoryId) throws ApiException Get a category Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)- Returns:
- ApiResponse<CategoryResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The requested category - 404 The category was not found -
-
getCategoryByIdAsync
public okhttp3.Call getCategoryByIdAsync(@Nonnull String planId, @Nonnull String categoryId, ApiCallback<CategoryResponse> _callback) throws ApiException Get a category (asynchronously) Returns a single category. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The requested category - 404 The category was not found -
-
getMonthCategoryByIdCall
public okhttp3.Call getMonthCategoryByIdCall(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, ApiCallback _callback) throws ApiException Build call for getMonthCategoryById- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The requested month category - 404 The month category was not was found -
-
getMonthCategoryById
public CategoryResponse getMonthCategoryById(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId) throws ApiException Get a category for a specific plan month Returns a single category for a specific plan month. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)- Returns:
- CategoryResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The requested month category - 404 The month category was not was found -
-
getMonthCategoryByIdWithHttpInfo
public ApiResponse<CategoryResponse> getMonthCategoryByIdWithHttpInfo(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId) throws ApiException Get a category for a specific plan month Returns a single category for a specific plan month. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)- Returns:
- ApiResponse<CategoryResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The requested month category - 404 The month category was not was found -
-
getMonthCategoryByIdAsync
public okhttp3.Call getMonthCategoryByIdAsync(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, ApiCallback<CategoryResponse> _callback) throws ApiException Get a category for a specific plan month (asynchronously) Returns a single category for a specific plan month. Amounts (assigned, activity, available, etc.) are specific to the current plan month (UTC).- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The requested month category - 404 The month category was not was found -
-
updateCategoryCall
public okhttp3.Call updateCategoryCall(@Nonnull String planId, @Nonnull String categoryId, @Nonnull PatchCategoryWrapper data, ApiCallback _callback) throws ApiException Build call for updateCategory- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)data- The category to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategory
public SaveCategoryResponse updateCategory(@Nonnull String planId, @Nonnull String categoryId, @Nonnull PatchCategoryWrapper data) throws ApiException Update a category Update a category- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)data- The category to update (required)- Returns:
- SaveCategoryResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryWithHttpInfo
public ApiResponse<SaveCategoryResponse> updateCategoryWithHttpInfo(@Nonnull String planId, @Nonnull String categoryId, @Nonnull PatchCategoryWrapper data) throws ApiException Update a category Update a category- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)data- The category to update (required)- Returns:
- ApiResponse<SaveCategoryResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryAsync
public okhttp3.Call updateCategoryAsync(@Nonnull String planId, @Nonnull String categoryId, @Nonnull PatchCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) throws ApiException Update a category (asynchronously) Update a category- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryId- The id of the category (required)data- The category to update (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryGroupCall
public okhttp3.Call updateCategoryGroupCall(@Nonnull String planId, @Nonnull String categoryGroupId, @Nonnull PatchCategoryGroupWrapper data, ApiCallback _callback) throws ApiException Build call for updateCategoryGroup- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryGroupId- The id of the category group (required)data- The category group to update (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The category group was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryGroup
public SaveCategoryGroupResponse updateCategoryGroup(@Nonnull String planId, @Nonnull String categoryGroupId, @Nonnull PatchCategoryGroupWrapper data) throws ApiException Update a category group Update a category group- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryGroupId- The id of the category group (required)data- The category group to update (required)- Returns:
- SaveCategoryGroupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The category group was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryGroupWithHttpInfo
public ApiResponse<SaveCategoryGroupResponse> updateCategoryGroupWithHttpInfo(@Nonnull String planId, @Nonnull String categoryGroupId, @Nonnull PatchCategoryGroupWrapper data) throws ApiException Update a category group Update a category group- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryGroupId- The id of the category group (required)data- The category group to update (required)- Returns:
- ApiResponse<SaveCategoryGroupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The category group was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateCategoryGroupAsync
public okhttp3.Call updateCategoryGroupAsync(@Nonnull String planId, @Nonnull String categoryGroupId, @Nonnull PatchCategoryGroupWrapper data, ApiCallback<SaveCategoryGroupResponse> _callback) throws ApiException Update a category group (asynchronously) Update a category group- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)categoryGroupId- The id of the category group (required)data- The category group to update (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The category group was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateMonthCategoryCall
public okhttp3.Call updateMonthCategoryCall(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, @Nonnull PatchMonthCategoryWrapper data, ApiCallback _callback) throws ApiException Build call for updateMonthCategory- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)data- The category to update. Only `budgeted` (assigned) amount can be updated and any other fields specified will be ignored. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The month category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateMonthCategory
public SaveCategoryResponse updateMonthCategory(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, @Nonnull PatchMonthCategoryWrapper data) throws ApiException Update a category for a specific month Update a category for a specific month. Only `budgeted` (assigned) amount can be updated.- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)data- The category to update. Only `budgeted` (assigned) amount can be updated and any other fields specified will be ignored. (required)- Returns:
- SaveCategoryResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The month category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateMonthCategoryWithHttpInfo
public ApiResponse<SaveCategoryResponse> updateMonthCategoryWithHttpInfo(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, @Nonnull PatchMonthCategoryWrapper data) throws ApiException Update a category for a specific month Update a category for a specific month. Only `budgeted` (assigned) amount can be updated.- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)data- The category to update. Only `budgeted` (assigned) amount can be updated and any other fields specified will be ignored. (required)- Returns:
- ApiResponse<SaveCategoryResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 The month category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-
updateMonthCategoryAsync
public okhttp3.Call updateMonthCategoryAsync(@Nonnull String planId, @Nonnull LocalDate month, @Nonnull String categoryId, @Nonnull PatchMonthCategoryWrapper data, ApiCallback<SaveCategoryResponse> _callback) throws ApiException Update a category for a specific month (asynchronously) Update a category for a specific month. Only `budgeted` (assigned) amount can be updated.- Parameters:
planId- The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan). (required)month- The plan month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC)) (required)categoryId- The id of the category (required)data- The category to update. Only `budgeted` (assigned) amount can be updated and any other fields specified will be ignored. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 The month category was successfully updated - 400 The request could not be understood due to malformed syntax or validation error(s) -
-