PUT
/
expense
/
{id}
Update Expense
curl --request PUT \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/expense/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "type": "product",
  "amount": 123,
  "amountUSD": 123,
  "currency": "<string>",
  "conversionRate": 123,
  "transactionDate": "2023-12-25",
  "split": [
    {}
  ],
  "memo": "<string>",
  "files": {}
}'
{
  "message": "Expense updated successfully"
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Expense ID

Body

application/json

Response

200
application/json

Success

The response is of type object.