Skip to main content
POST
/
savings
/
add
Create a Saving
curl --request POST \
  --url https://cashboard-f5x2.onrender.com/savings/add \
  --header 'Content-Type: application/json' \
  --data '
{
  "desc": "New Car",
  "goal": 950000,
  "currency": "KSH",
  "currentAmount": 0
}
'
{
  "savings": [
    {
      "desc": "New Car",
      "goal": "950000",
      "currency": "KSH",
      "_id": "662fd2808f1d17198913a0c8",
      "createdAt": "2024-04-29T17:01:52.662Z",
      "updatedAt": "2024-04-29T17:01:52.662Z"
    }
  ]
}

Query Parameters

user
string

Body

application/json

The body is of type object.

Response

OK

The response is of type object.