---
title: "Update the energy mix of a (charge) site"
method: PUT
path: "/api/v1/sites/{siteId}/energy-mix"
tags: ["Sites"]
---

# Update the energy mix of a (charge) site

`PUT /api/v1/sites/{siteId}/energy-mix`

## Request

- Base URL: `https://partner-api.monta.com`
- URL: `https://partner-api.monta.com/api/v1/sites/{siteId}/energy-mix`
- Auth: HTTP bearer

Required scope: `charge-points:write` </br>Organization authorization: `supported`

## Path parameters

- `siteId` integer, required

## Request body

- EnergyMixRequest
  - `isGreenEnergy` boolean, nullable: Whether the site's electricity comes from renewable sources. `true` is a claim that has to be backed up in the same energy mix by at least one of: `supplier_name`, `energy_product_name`, or `energy_sources` with percentages adding up to 100. Blank names and partial source lists don't count, and the request is rejected with a 422. `false` or `null` needs no other fields.
  - `energySources` EnergySourceRequest[], nullable: List of energy sources with their category and percentage
    - `source` 'NUCLEAR' | 'GENERAL_FOSSIL' | 'COAL' | 'GAS' | 'GENERAL_GREEN' | 'SOLAR' | 'WIND' | 'WATER', required
    - `percentage` number, double: Percentage of this energy source (0–100)
  - `environImpact` EnvironmentalImpactRequest[], nullable: List of environmental impacts for this energy mix
    - `category` 'NUCLEAR_WASTE' | 'CARBON_DIOXIDE', required
    - `amount` number, double: Amount of environmental impact
  - `supplierName` string, nullable: Name of the energy supplier
  - `energyProductName` string, nullable: Name of the energy product

## Response `200`

Energy mix updated

- SiteEnergyMix: Energy mix information for a site
  - `is_green_energy` boolean, nullable: Indicates if the energy is green
  - `energy_sources` EnergySourceItem[], required: List of energy sources with their category and percentage
    - `source` 'NUCLEAR' | 'GENERAL_FOSSIL' | 'COAL' | 'GAS' | 'GENERAL_GREEN' | 'SOLAR' | 'WIND' | 'WATER', required
    - `percentage` number, double: Percentage of this energy source (0–100)
  - `environ_impact` EnvironmentalImpactItem[], required: List of environmental impacts for this energy mix
    - `category` 'NUCLEAR_WASTE' | 'CARBON_DIOXIDE', required
    - `amount` number, double: Amount of environmental impact
  - `supplier_name` string, nullable: Name of the energy supplier
  - `energy_product_name` string, nullable: Name of the energy product

## Other responses

- `400`: The request is invalid
- `401`: Consumer with provided credentials was not found
- `403`: Operator doesn't have access to resource
- `404`: Entity with the provided id was not found
- `422`: The energy mix claims green energy but nothing backs it up (see `is_green_energy`)

## Changes

- **2026-11-03** `0ca400461c52`: 1 info
  - added the non-success response with the status `422`

[Operation history](https://skmtc.dev/monta/apis/monta-partner-api/changes/api/v1/sites/:siteId/energy-mix/put.md)

---

[API](https://skmtc.dev/monta/apis/monta-partner-api.md) - [All operations](https://skmtc.dev/monta/apis/monta-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/monta/apis/monta-partner-api/revisions/0ca400461c52?raw)
