Skip to main content
Version: 0.1.21 (Current)

update_flexible_budget

Type: mutation

Updates the Flexible budget amount.

Signature

async def update_flexible_budget(
amount: float,
start_date: str | None = None,
apply_to_future: bool = False
) -> Dict[str, Any]

Parameters

ParameterTypeRequiredDescription
amountfloatYesThe amount to set the Flexible budget to. Can be negative (to indicate over-budget). A zero value will "unset" or "clear" the budget for the Flexible category.
start_date`strNone`No
apply_to_futureboolNoWhether to apply the new budget amount to all proceeding timeframes

Example

from monarchmoney import MonarchMoney

mm = MonarchMoney()
await mm.login(email, password)

result = await mm.update_flexible_budget(100.0)
print(result)

GraphQL Operation

Operation Name: Common_UpdateFlexBudgetMutation

GraphQL Query

mutation Common_UpdateFlexBudgetMutation($input: UpdateOrCreateFlexBudgetItemMutationInput!) {
updateOrCreateFlexBudgetItem(input: $input) {
budgetItem {
id
budgetAmount
__typename
}
__typename
}
}

Try It Out

To test this API method locally:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.