---
title: "Update Investment"
method: PUT
path: "/api/investments/{plan_id}"
tags: ["Investments"]
---

# Update Investment

`PUT /api/investments/{plan_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/investments/{plan_id}`
- Auth: HTTP bearer

Update an investment plan.

## Path parameters

- `plan_id` string, uuid, required

## Request body

- InvestmentUpdate
  - `name` string, nullable
  - `monthly_amount` union
    - number
    - string
  - `risk_level` 'cautious' | 'balanced' | 'adventurous'
  - `time_horizon_years` integer, nullable
  - `current_portfolio_value` union
    - number
    - string
  - `target_amount` union
    - number
    - string
  - `isa_contributions_this_year` union
    - number
    - string

## Response `200`

Successful Response

- InvestmentResponse
  - `id` string, required
  - `name` string, required
  - `monthly_amount` number, required
  - `risk_level` string, required
  - `time_horizon_years` integer, required
  - `current_portfolio_value` number, required
  - `target_amount` number, nullable, required
  - `isa_contributions_this_year` number, required
  - `created_at` string, required
  - `updated_at` string, required
  - `note` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
