curl --location '/api/v1/portfolios//assets' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"asset": {
"name": "Honda CR-V 2023",
"asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71",
"amount_cents": 0,
"amount_currency": "IDR",
"description": "Family SUV, black color",
"acquisition_date": "2019-08-24",
"acquisition_price_cents": 0,
"acquisition_price_currency": "string",
"location": "Garage at home",
"serial_number": "B 1234 ABC"
}
}'{
"success": true,
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Toyota Camry 2022",
"description": "Family car, silver color, purchased new",
"amount": {
"cents": 100000,
"currency": "IDR"
},
"current_value": 0,
"total_value": 0,
"acquisition_date": "2019-08-24",
"acquisition_price": {
"cents": 100000,
"currency": "IDR"
},
"location": "Jakarta, Indonesia",
"serial_number": "string",
"category": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Real Estate",
"kind": "physical"
},
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}
}