---
title: "Execute dimming event (real or simulated)"
method: POST
path: "/api/flex/events/execute"
tags: ["Flex (§14a Flexibilitätsmanagement)"]
---

# Execute dimming event (real or simulated)

`POST /api/flex/events/execute`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/flex/events/execute`
- Auth: none declared

Executes a dimming plan or single device dimming. Publishes MQTT command to cernion/flex/{deviceId}/dimming topic and stores events for Entlastungsnachweis.

## Query parameters

- `token` string

## Request body

- object
  - `planId` string
  - `deviceId` string
  - `durationMinutes` number
  - `dimmedPowerKw` number
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Successful response

- object

---

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