Sites

Update the energy mix of a (charge) site

Changed on

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

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

Path parameters

siteIdinteger required

Request body

isGreenEnergyboolean 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.

supplierNamestring nullable

Name of the energy supplier

energyProductNamestring nullable

Name of the energy product

Example request

{
  "isGreenEnergy": true,
  "energySources": [
    {
      "percentage": 40
    }
  ],
  "environImpact": [
    {
      "amount": 12.5
    }
  ],
  "supplierName": "Green Energy Supplier",
  "energyProductName": "EcoPower 2025"
}

Response

Energy mix updated

is_green_energyboolean nullable

Indicates if the energy is green

supplier_namestring nullable

Name of the energy supplier

energy_product_namestring nullable

Name of the energy product

Example response

{
  "is_green_energy": true,
  "energy_sources": [
    {
      "percentage": 40
    }
  ],
  "environ_impact": [
    {
      "amount": 12.5
    }
  ],
  "supplier_name": "Green Energy Supplier",
  "energy_product_name": "EcoPower 2025"
}

Changes