---
title: "Update existing currency exchange rate."
method: PUT
path: "/v1/exchange-rates/{from}/{to}/{date}"
tags: ["currency_exchange_rates"]
---

# Update existing currency exchange rate.

`PUT /v1/exchange-rates/{from}/{to}/{date}`

## Request

- Base URL: `https://demo.firefly-iii.org/api`
- URL: `https://demo.firefly-iii.org/api/v1/exchange-rates/{from}/{to}/{date}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://demo.firefly-iii.org/oauth/authorize`
    - Token URL: `https://demo.firefly-iii.org/oauth/token`
  - HTTP bearer

Used to update a single currency exchange rate by its currency codes and date

## Path parameters

- `from` string, required
- `to` string, required
- `date` string, string, required

## Headers

- `X-Trace-Id` string, uuid

## Request body

- CurrencyExchangeRateUpdateNoDate
  - `rate` string, string, required: The exchange rate from the base currency to the destination currency.

## Response `200`

Updated exchange rate stored, result in response

- CurrencyExchangeRateSingle
  - `data` CurrencyExchangeRateRead, required
    - `type` string, string: Immutable value
    - `id` string, string
    - `attributes` CurrencyExchangeProperties
      - `created_at` string, date-time
      - `updated_at` string, date-time
      - `from_currency_id` string, string: Base currency ID for this exchange rate entry.
      - `from_currency_name` string, string: Base currency name for this exchange rate entry.
      - `from_currency_code` string, string: Base currency code for this exchange rate entry.
      - `from_currency_symbol` string, string: Base currency symbol for this exchange rate entry.
      - `from_currency_decimal_places` integer: Base currency decimal places for this exchange rate entry.
      - `to_currency_id` string, string: Destination currency ID for this exchange rate entry.
      - `to_currency_name` string, string: Destination currency name for this exchange rate entry.
      - `to_currency_code` string, string: Destination currency code for this exchange rate entry.
      - `to_currency_symbol` string, string: Destination currency symbol for this exchange rate entry.
      - `to_currency_decimal_places` integer: Destination currency decimal places for this exchange rate entry.
      - `rate` string, string: The actual exchange rate. How many 'to' currency will you get for 1 'from' currency?
      - `date` string, date-time: Date and time of the exchange rate.
    - `links` ObjectLink
      - `0` object
        - `rel` string, string
        - `uri` string, string
      - `self` string, uri

## Other responses

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

---

[API](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-16.md) - [All operations](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-16/llms.txt) - [OpenAPI document](https://skmtc.dev/firefly-iii/apis/firefly-iii-api-v6-4-16/revisions/9935effbe852?raw)
