The
/expense/{id}
endpoint allows updating details of a specific expense record.
Method:PUT
Path Parameter:
Parameter | Type | Description |
---|---|---|
id | string | The unique identifier of the expense record |
Parameter | Type | Description |
---|---|---|
title | string | Updated title/description |
type | string | Updated expense type |
amount | number | Updated expense amount |
amountUSD | number | Updated USD amount |
currency | string | Updated currency |
transactionDate | string | Updated transaction date |
split | array | Updated split information |
memo | string | Updated notes |
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Path Parameters
Parameter | Type | In | Required | Description |
---|---|---|---|---|
id | string | path | ✅ | Expense ID |
Request Body
Request Schema
Field | Type | Required | Description |
---|---|---|---|
title | string | ❌ | |
type | string | ❌ | |
amount | number | ❌ | |
amountUSD | number | ❌ | |
currency | string | ❌ | |
conversionRate | number | ❌ | |
transactionDate | string | ❌ | |
split | array | ❌ | |
memo | string | ❌ | |
files | object | ❌ |
Responses
✅ 200 - Success
⚠️ 401 - Unauthorized
⚠️ 404 - Not Found
❌ 500 - Internal Server Error
Tags
Expense
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Expense ID
Body
application/json