---
title: "Cancel a queued or running forecast evaluation job"
method: POST
path: "/api/forecast-sandbox/consumption/evaluation/jobs/:jobId/cancel"
tags: ["Forecast Sandbox"]
---

# Cancel a queued or running forecast evaluation job

`POST /api/forecast-sandbox/consumption/evaluation/jobs/:jobId/cancel`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/forecast-sandbox/consumption/evaluation/jobs/:jobId/cancel`
- Auth: none declared

Terminates the forecast worker. Uses the existing job error state with error forecast_cancelled; scoped to the trusted gateway tenant. Completed results remain unchanged.

## Path parameters

- `jobId` string, required

## Query parameters

- `token` string

## Request body

- object
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Cancellation recorded or job already terminal.

## Other responses

- `404`: Forecast job not found.

---

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