---
title: "Set tariff energy prices"
method: PUT
path: "/tariffs/{tariffId}/energy-prices"
tags: ["Tariffs"]
---

# Set tariff energy prices

`PUT /tariffs/{tariffId}/energy-prices`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/tariffs/{tariffId}/energy-prices`
- Auth: API key in header `clevergy-api-key`

Sets the energy prices of a tariff, excluding taxes. The given dates should be in UTC, and sets the price (in €/kWh) for the given hour.
Eg.: if a price for 2025-03-12T10:00:00Z is provided, it sets the price for the energy from 10:00 to 11:00.

## Path parameters

- `tariffId` string, required

## Request body

- TariffEnergyPrices: Tariff energy prices
  - `prices` TariffEnergyPrice[], required
    - `date` string, date-time, required: UTC date and hour of the price. Will be truncated to hours
    - `price` number, float, required: Price in €/kWh

## Response `200`

Record successfully set.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/clevergy/apis/clevergy-connect-api.md) - [All operations](https://skmtc.dev/clevergy/apis/clevergy-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clevergy/apis/clevergy-connect-api/revisions/d333c5eecb5b?raw)
