---
title: "Refresh Position Cache"
method: POST
path: "/portfolio/{accountId}/positions/invalidate"
tags: ["tradingPortfolio"]
---

# Refresh Position Cache

`POST /portfolio/{accountId}/positions/invalidate`

Instructs IB to discard cached portfolio positions for a given account, so that the next request for positions delivers freshly obtained data.

## Path parameters

- `accountId` string, required

## Response `200`

status of invalidation

- TradingPortfolioInvalidatePositionCacheResponse200
  - `message` string — Indicates success or failure of request to discard cached positions.

## Other responses

- `400` — Missing, empty, non-numeric, or out-of-range parameter. The `error` field is always prefixed with `Bad Request:`.
- `401` — Missing, invalid, or unparseable Authorization token.
- `500` — internal server error, returned when incoming request cannot be processed. It can sometimes include subset of bad requests. For example, wrong accountId passed and it can only be detected later in handling request. Error contains reason of the problem.
- `503` — service is unavailable. For example if request takes more than 10s due to some internal service unavailability, request aborted and this status returned

---

[API](https://skmtc.net/interactivebrokers/apis/api-reference.md) · [All operations](https://skmtc.net/interactivebrokers/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interactivebrokers/api-reference/revisions/67f9f562c2c6/schema)
