curl -X PATCH https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"amount": 60000,
"alert_threshold": 90
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 60000,
"period": "monthly",
"alert_threshold": 90,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T11:45:00.000Z"
}
}
Update an existing budget
curl -X PATCH https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"amount": 60000,
"alert_threshold": 90
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 60000,
"period": "monthly",
"alert_threshold": 90,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T11:45:00.000Z"
}
}
weekly - Budget resets every weekmonthly - Budget resets every monthyearly - Budget resets every yearShow Budget object
weekly, monthly, or yearlycurl -X PATCH https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"amount": 60000,
"alert_threshold": 90
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 60000,
"period": "monthly",
"alert_threshold": 90,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T11:45:00.000Z"
}
}
400 - Invalid request parameters401 - Missing or invalid authentication token403 - Invalid CSRF token404 - Budget not found or does not belong to the specified account500 - Internal server erroraccount_id are optional. Only provided fields will be updated.category_id cannot be changed. To budget a different category, create a new budget.updated_at timestamp is automatically updated when any changes are made.