Update Account Endpoint
const url = 'https://example.com/api/v1/accounts/1';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","short_name":"example","account_type":"checking","currency":"example","institution":"example","institution_id":1,"notes":"example","is_liability":true,"on_budget":true,"exclude_from_net_worth":true,"liquidity_horizon":"immediate","opened_at":"2026-04-15","loan_interest_rate":1,"loan_monthly_payment":1,"linked_account_id":1,"ofx_account_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/accounts/1 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "short_name": "example", "account_type": "checking", "currency": "example", "institution": "example", "institution_id": 1, "notes": "example", "is_liability": true, "on_budget": true, "exclude_from_net_worth": true, "liquidity_horizon": "immediate", "opened_at": "2026-04-15", "loan_interest_rate": 1, "loan_monthly_payment": 1, "linked_account_id": 1, "ofx_account_id": "example" }'Update an account’s allowed fields.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Schema for partial account updates — mass assignment prevention.
Excludes id, user_id, deleted_at, created_at, updated_at. Currency IS updatable, but a change is rejected at the service layer (account_service.update_account, AccountCurrencyLockedError) once the account has any snapshot, active or soft-deleted.
object
Account type enum — descriptive only in v1.
Does not change aggregation behavior.
Liquidity classification for accounts — availability of funds.
Used for liquidity analysis and emergency fund calculations. Defaults to ‘semi_liquid’ as a safe middle ground.
Responses
Section titled “Responses”Successful Response
Schema for account response — ORM serialization via from_attributes.
object
Account type enum — descriptive only in v1.
Does not change aggregation behavior.
Liquidity classification for accounts — availability of funds.
Used for liquidity analysis and emergency fund calculations. Defaults to ‘semi_liquid’ as a safe middle ground.
How to read a CSV file; every column is optional until the mapping is complete.
object
Example
{ "account_type": "checking", "liquidity_horizon": "immediate", "csv_import_mapping": { "delimiter": ",", "encoding": "utf-8", "skip_rows": 0, "has_header": true, "date_format": "DD/MM/YYYY", "amount_mode": "signed", "number_format": "1,234.56", "flip_sign": false }}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}