---
title: "Update a recommendation"
method: PATCH
path: "/companies/{companyId}/recommendations/{id}"
tags: ["Recommendations"]
---

# Update a recommendation

`PATCH /companies/{companyId}/recommendations/{id}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/recommendations/{id}`
- Auth: HTTP bearer

## Request body

- UpdateRecommendationInput
  - `priority` 'HIGH' | 'MEDIUM'
  - `category` string
  - `title` string
  - `summary` string
  - `details` object, nullable
  - `action` string, nullable
  - `investmentCents` integer, nullable
  - `expectedAnnualReturnCents` integer, nullable
  - `currency` string: Accepted case-insensitively and normalized to uppercase by the server.
  - `timeframe` string, nullable
  - `confidencePct` number, nullable
  - `dataSource` string, nullable
  - `status` 'pending' | 'active' | 'completed' | 'dismissed'
  - `dismissedReason` string, nullable

## Response `200`

Recommendation updated

- RecommendationResponse
  - `success` boolean
  - `data` Recommendation
    - `id` string, uuid
    - `companyId` string, uuid
    - `priority` 'HIGH' | 'MEDIUM'
    - `category` string
    - `title` string
    - `summary` string
    - `details` object, nullable
    - `action` string, nullable
    - `investmentCents` integer, nullable
    - `expectedAnnualReturnCents` integer, nullable
    - `currency` string, required
    - `minorUnitExponent` 2, required
    - `timeframe` string, nullable
    - `confidencePct` number, nullable
    - `dataSource` string, nullable
    - `status` 'pending' | 'active' | 'completed' | 'dismissed'
    - `dismissedReason` string, nullable
    - `createdAt` string, date-time
    - `completedAt` string, date-time, nullable

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Recommendation not found
- `422`: Request failed validation

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
