Skip to main content
PUT
Update a single exchange rate
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

PUT /currencies/exchange-rates/ Partial update — only provided fields are changed. The merged (existing + update) row is re-validated through the same shared validator POST uses, so an update cannot introduce an invalid currency code, period, or date even if the original row predates stricter validation. Authorization: admin or higher (requireAdmin).

Code Examples

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Body

application/json

Partial ExchangeRateInput — any subset of fields.

base
string
quoted
string
rate
number
period
string
source
string
effectiveDate
string<date-time>
expiryDate
string<date-time>
isDefault
boolean
memo
string

Response

Exchange rate updated

status
string
Example:

"success"

message
string
data
object

A stored exchange rate (ExchangeRate model).