PUT
/
investment
/
{id}
Update Investment
curl --request PUT \
  --url https://cashboard-f5x2.onrender.com/investment/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 12000,
  "account": "662fbf9eac827e370c18d4b9",
  "date": "04/27/2024"
}'
{
  "investment": {
    "desc": "Bitcoin",
    "currentAmount": 107000,
    "category": "Cryptocurrency",
    "_id": "662ff8a5712cd9fd793e1fb7",
    "createdAt": "2024-04-29T19:44:37.441Z",
    "updatedAt": "2024-04-29T19:59:18.070Z"
  }
}

Path Parameters

id
string
required

Query Parameters

user
string

Body

application/json · object

Response

200
application/json

OK

The response is of type object.