Updates a budget's top-level configuration. To change members or owners, use their respective endpoints — budget members and budget owners.
The reset cadence for the budget. JULY_FINANCIAL_YEAR resets on 1 July; APRIL_FINANCIAL_YEAR resets on 1 April.
- https://public.letsweel.comhttps://public.letsweel.com/v1/businesses/{client_id}/budgets/{budget_id}
curl -i -X PATCH \
'https://public.letsweel.com/v1/businesses/123/budgets/{budget_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Sales Team",
"reset_amount": 1500,
"reset_period": "MONTHLY",
"has_member_limits": true,
"rollover_funds": true,
"limit_categories": true,
"categories": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"custom_fields": [
{
"id": "a2b1d8c0-9a4e-4b8a-bf24-90af44a98e2f",
"allow_options": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
]
}'OK
The reset cadence for the budget. JULY_FINANCIAL_YEAR resets on 1 July; APRIL_FINANCIAL_YEAR resets on 1 April.
The start date of the current period in UTC.
The end date of the current period in UTC.
When true, unspent balance rolls over to the next period instead of resetting.
When true, only categories listed in categories are visible on the budget. When false, all enabled business categories are visible.
Categories currently visible on the budget. Returns an empty array when limit_categories is false (no restriction in force).
The date and time when the budget was created in UTC.
{ "id": "e33b7c61-5124-4ba0-b238-e4c573133715", "name": "Sales Team", "budget_type": "BUDGET", "available_amount": 800, "spent_amount": 200, "reset_amount": 1000, "reset_period": "MONTHLY", "current_period_start": "2024-01-01T00:00:00Z", "current_period_end": "2024-01-31T23:59:59Z", "has_member_limits": false, "rollover_funds": false, "limit_categories": false, "categories": [ { … } ], "custom_fields": [ { … } ], "is_deleted": false, "created": "2024-01-01T00:00:00Z", "updated": "2024-01-01T00:00:00Z" }