---
title: "Store new currency exchange rates under this date"
method: POST
path: "/v1/exchange-rates/by-date/{date}"
tags: ["currency_exchange_rates"]
---

# Store new currency exchange rates under this date

`POST /v1/exchange-rates/by-date/{date}`

Stores a new set of exchange rates. The date is fixed (in the URL parameter) and the data required can be submitted as a JSON body.

## Path parameters

- `date` string, string, required

## Headers

- `X-Trace-Id` string, uuid

## Request body

- CurrencyExchangeRateStoreByDate
  - `from` string, string, required — The 'from'-currency
  - `rates` object, required — The actual entries for this data set. They 'key' value is 'to' currency. The value is the exchange rate.

## Response `200`

New exchange rates stored, result in response. If a rate already existed for any submitted entry, it will be updated.

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `404` — Page not found
- `422` — Validation error. The body will have the exact details.
- `500` — Internal exception

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop.md) · [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-develop/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/firefly-iii/firefly-iii-api-develop/revisions/8a1f6472e04b/schema)
