---
title: "Update an FX rate"
method: PUT
path: "/forex/{id}"
tags: ["FX Rates"]
---

# Update an FX rate

`PUT /forex/{id}`

## Request

- Base URL: `https://us.api.flexprice.io/v1`
- URL: `https://us.api.flexprice.io/v1/forex/{id}`
- Auth: API key in header `x-api-key`

Update a rate's value, validity window (overrides only) or metadata. Scope, scope_id and the currency pair are immutable.

## Path parameters

- `id` string, required

## Request body

- UpdateFXRateRequest
  - `end_date` string, date-time
  - `metadata` object
  - `rate` string
  - `start_date` string, date-time

## Response `200`

OK

- FXRateResponse
  - `created_at` string, date-time
  - `created_by` string
  - `end_date` string, date-time
  - `environment_id` string
  - `from_currency` string
  - `id` string
  - `metadata` object
  - `rate` string
  - `scope` 'tenant' | 'customer' | 'subscription'
  - `scope_id` string
  - `source` 'fixed' | 'market'
  - `start_date` string, date-time
  - `status` 'published' | 'deleted' | 'archived'
  - `tenant_id` string
  - `to_currency` string
  - `updated_at` string, date-time
  - `updated_by` string

## Other responses

- `400`: Invalid request
- `500`: Server error

## Changes

- **2026-10-02** `dba33efc3068`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/forex/:id/put.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) - [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flexprice/apis/flexprice-api/revisions/84cb4a3af400?raw)
