Update asset

put
Update asset

https://dev.lunchmoney.app/v1/assets/:id
Request
Response
Request
Body Parameters
type_name
optional
string
Must be one of: cash, credit, investment, other, real estate, loan, vehicle, cryptocurrency, employee compensation
subtype_name
optional
string
Max 25 characters
name
optional
string
Max 45 characters
balance
optional
string
Numeric value of the current balance of the account. Do not include any special characters aside from a decimal point!
balance_as_of
optional
string
Has no effect if balance is not defined. If balance is defined, but balance_as_of is not supplied or is invalid, current timestamp will be used.
currency
optional
string
Three-letter lowercase currency code must exist in our database. Defaults to asset's currency.
institution_name
optional
string
Max 50 characters
Response
200: OK
{
"id": 12,
"type_name": "cash",
"subtype_name": "savings",
"name": "TD Savings Account",
"balance": "28658.5300",
"balance_as_of": "2020-03-10T05:17:23.856Z",
"currency": "cad",
"institution_name": "TD Bank",
"created_at": "2019-08-10T22:46:19.486Z"
}
400: Bad Request
{ errors:
[ 'type_name must be one of: cash, credit, investment, other, real estate, loan, vehicle, cryptocurrency, employee compensation' ] }