---
title: "Update the list of favorite instruments"
method: PUT
path: "/v4/user/accounts/{server}/{accountId}/instruments/favourites"
tags: ["Favorites (v4)"]
---

# Update the list of favorite instruments

`PUT /v4/user/accounts/{server}/{accountId}/instruments/favourites`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v4/user/accounts/{server}/{accountId}/instruments/favourites`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v4/user/accounts/:server/:accountId/instruments/favourites/put.ts> (a function with typed inputs; its response is checked against the schema)

Replaces the entire list of favorite instruments with the provided list.

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required

## Request body

- object[]
  - `id` string, required

## Response `200`

OK

- object
  - `data` object[], required
    - `id` string, required

## Other responses

- `400`: FAIL

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
