PUT
/
user
/
{id}
Update user
curl --request PUT \
  --url https://cashboard-f5x2.onrender.com/user/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "KSH"
}'
{
  "_id": "65c9bd409983f403ed82f194",
  "username": "michellem",
  "email": "michelle.muthoni@gmail.com",
  "password": "$2a$10$yjp6lyCU6.jwQrhOG/7kjOhnYHR3dyh4t8EkdoC3np9IZstHoiXiC",
  "currency": "USD",
  "accounts": [],
  "income": [],
  "expenses": [],
  "savings": [],
  "investments": [],
  "reports": [],
  "__v": 0
}

Path Parameters

id
string
required

required

Body

application/json · object

Response

200
application/json

OK

The response is of type object.