> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dalyenergy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Saved Energy Model

> Replace the saved input JSON on an existing energy-model row

# PUT /energymodels/{energy_model_id}

Use this endpoint to save edited `EnergyModelInput` JSON back onto an existing
energy-model row.

## Notes

* The request body is the full `EnergyModelInput` payload.
* The update happens on the existing row and clears stale outputs.
* The response is an `EnergyModelDetailResponse` that includes `inputs`.
* Rows in `pending`, `queued`, or `running` state return `409 Conflict`.
