Store new currency exchange rates under this from/to pair.
Stores a new set of exchange rates for this pair. The date is variable, and the data required can be submitted as a JSON body.
Body
JSON array with the necessary currency exchange rate information. See the model for the exact specifications.
The actual entries for this data set. They 'key' value is the date in YYYY-MM-DD. The value is the exchange rate.
[key: string]string{
"2025-08-01": "1.2345",
"2025-08-02": "6.3456"
}Parameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
fromstringrequiredpathThe currency code of the 'from' currency.
tostringrequiredpathThe currency code of the 'to' currency.
Response
New exchange rates stored, result in response. If a rate already existed for any submitted entry, it will be updated.
Bad request
Unauthenticated
Page not found
Validation error. The body will have the exact details.
Internal exception
Authorization
firefly_iii_authoauth2OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.
local_bearer_authhttp (bearer)A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.
