---
title: "Retrain the model portfolio using its members and current history snapshots"
method: POST
path: "/api/forecast-sandbox/consumption/portfolio/retrain"
tags: ["Forecast Sandbox"]
---

# Retrain the model portfolio using its members and current history snapshots

`POST /api/forecast-sandbox/consumption/portfolio/retrain`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/forecast-sandbox/consumption/portfolio/retrain`
- Auth: none declared

Live training/history/model access requires a credential bound to the tenant; a tenant header alone is insufficient. Shared-baseline contributors remain internal; only tenant-owned meter predictions are returned.

## Query parameters

- `token` string

## Request body

- object
  - `model_version` string, required
  - `forecast_for` string, date, required
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Result, immutable version, or durable result manifest

- object

## Other responses

- `202`: Forecast job accepted. Poll statusUrl/progressUrl; fetch resultUrl once completed. CPU work runs in a separate worker.
- `400`: Invalid input, unknown tenant-owned artifact, or incompatible resume
- `401`: Credential with a bound tenant is required for live model operations

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
