---
title: "Update an exchange rate period"
method: PATCH
path: "/exchange-rate-periods/{id}"
tags: ["Exchange Rate Periods"]
---

# Update an exchange rate period

`PATCH /exchange-rate-periods/{id}`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/exchange-rate-periods/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `fromCurrency` string: The 3-letter ISO 4217 currency code for the source currency.
  - `toCurrency` string: The 3-letter ISO 4217 currency code for the target currency. Must differ from `fromCurrency`.
  - `start` string, date: The start date for the period (`YYYY-MM-DD`).
  - `end` string, date: The end date for the period (`YYYY-MM-DD`). Must come on or after `start`.
  - `rate` number, required: The exchange rate applied when converting from `fromCurrency` to `toCurrency`.

## Response `200`

200

- ExchangeRatePeriod
  - `id` string: The unique identifier for the object.
  - `fromCurrency` string: The 3-letter ISO 4217 currency code for the source currency.
  - `toCurrency` string: The 3-letter ISO 4217 currency code for the target currency.
  - `start` string, date: The start date for the period. Will be in the form YYYY-MM-DD.
  - `end` string, date: The end date for the period. Will be in the form YYYY-MM-DD.
  - `rate` number: The exchange rate applied when converting from `fromCurrency` to `toCurrency`.
  - `createdAt` string, date-time: The timestamp when the object was created.

## Other responses

- `400`: 400
- `403`: 403
- `404`: 404

---

[API](https://skmtc.dev/ruddr/apis/ruddr-api.md) · [All operations](https://skmtc.dev/ruddr/apis/ruddr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ruddr/apis/ruddr-api/revisions/01c3f2a969ba?raw)
