---
title: "Update a forecast stream"
method: PUT
path: "/companies/{companyId}/forecast/{forecastId}/streams/{streamId}"
tags: ["Forecast"]
---

# Update a forecast stream

`PUT /companies/{companyId}/forecast/{forecastId}/streams/{streamId}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/forecast/{forecastId}/streams/{streamId}`
- Auth: HTTP bearer

## Request body

- UpdateForecastStreamInput
  - `label` string
  - `position` integer
  - `drivers` object
  - `archived` boolean

## Response `200`

Updated stream

- object
  - `success` boolean
  - `data` ForecastStream
    - `id` string, uuid
    - `forecastId` string, uuid
    - `type` 'subscription' | 'usage' | 'license' | 'onetime' | 'services_hours' | 'services_retainer' | 'ledger_run_rate'
    - `label` string
    - `position` integer
    - `drivers` object
    - `archived` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `422`: Validation error

---

[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)
