---
title: "Approve and merge a forecast sandbox into the live model"
method: POST
path: "/companies/{companyId}/forecast/{forecastId}/scenarios/{scenarioId}/merge"
tags: ["Forecast"]
---

# Approve and merge a forecast sandbox into the live model

`POST /companies/{companyId}/forecast/{forecastId}/scenarios/{scenarioId}/merge`

## Request

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

## Response `200`

Merged forecast aggregate

- ForecastAggregateResponse
  - `success` boolean
  - `data` ForecastAggregate
    - `model` ForecastModel, required
      - `id` string, uuid, required
      - `companyId` string, uuid, required
      - `entityId` string, uuid, required
      - `label` string, required
      - `businessType` 'software' | 'services' | 'digital' | 'usage' | 'license' | 'blended' | 'custom', required
      - `startCashCents` integer, required: Starting cash in the model's authoritative minor units
      - `horizonMonths` 12 | 18 | 24, required
      - `currency` string, required: Server-owned legal-entity functional currency
      - `minorUnitExponent` 2, required: Server-owned scale for every monetary integer in this Forecast model
      - `moneyAuthorityVersion` 1, required
      - `source` 'unknown' | 'manual' | 'books', required: Provenance of the model's opening cash boundary
      - `sourceMetadata` object, required: Non-secret authority metadata such as closed period, anchor, and functional currency
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
    - `streams` ForecastStream[], required
      - `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
    - `headcount` ForecastHeadcount[], required
      - `id` string, uuid
      - `forecastId` string, uuid
      - `role` string
      - `employmentType` 'w2' | 'contractor'
      - `count` integer
      - `monthlyCostCents` integer: Monthly cost per head in the model's authoritative minor units
      - `startOffset` integer
      - `rampMonths` integer
      - `position` integer
    - `opex` ForecastOpex[], required
      - `id` string, uuid
      - `forecastId` string, uuid
      - `name` string
      - `behavior` 'fixed' | 'pct_revenue' | 'per_head'
      - `amountCents` integer, nullable: Fixed or per-head amount in the model's authoritative minor units
      - `pct` number, nullable: Percentage of revenue (for pct_revenue), in [0,1]
      - `position` integer
    - `financingEvents` ForecastFinancingEvent[], required: Repository-authoritative financing assumptions; preview clients cannot submit this field
      - `id` string, uuid, required
      - `forecastId` string, uuid, required
      - `legalEntityId` string, uuid, required
      - `amountCents` integer, required
      - `currency` string, required
      - `effectiveMonth` string, required
      - `expectedDate` string, date, nullable: Explicit expected receipt day within effectiveMonth. Omitted or null means undated; a date alone is not evidence of posted cash.
      - `source` 'manual' | 'forecast_ai' | 'forecast_mcp' | 'deterministic_lever', required
      - `promptHash` string, nullable, required
      - `createdAt` string, date-time, required
    - `scenarios` ForecastScenario[], required
      - `id` string, uuid
      - `forecastId` string, uuid
      - `name` string
      - `kind` 'adhoc' | 'budget'
      - `isLocked` boolean
      - `baseModelId` string, uuid, nullable
      - `overrides` object
      - `createdAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: The sandbox was already resolved or its reviewed authority is stale
- `422`: Sandbox is invalid or has no approved changes

---

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