Skip to main content
PUT
/
v3
/
sites
/
{site}
/
smart-charging
Update Smart Charging
curl --request PUT \
  --url https://app.plugchoice.com/api/v3/sites/{site}/smart-charging \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "timezone": "<string>",
  "smart_charging": "<string>",
  "day_ahead_pricing_strategy": "<string>",
  "day_ahead_pricing_threshold": 123,
  "off_peak_start": "<string>",
  "off_peak_end": "<string>"
}
'
{
  "timezone": "<string>",
  "smart_charging": "<string>",
  "day_ahead_pricing_strategy": "<string>",
  "day_ahead_pricing_threshold": 123,
  "day_ahead_pricing_smart_mode_price": 123,
  "off_peak_start": "<string>",
  "off_peak_end": "<string>"
}
Updates the smart charging settings for the specified location.
site
string
required
The UUID of the location.
timezone
string
required
A valid timezone identifier (e.g., Europe/Amsterdam).
smart_charging
string
required
The smart charging mode. One of disabled, off_peak, or day_ahead_pricing.
day_ahead_pricing_strategy
string
The day-ahead pricing strategy. One of automatic or manual.
day_ahead_pricing_threshold
integer
The day-ahead pricing threshold. Required when day_ahead_pricing_strategy is manual and no threshold has been previously set.
off_peak_start
string
The off-peak start time in HH:mm format.
off_peak_end
string
The off-peak end time in HH:mm format.

Response

timezone
string
The location’s configured timezone.
smart_charging
string
The smart charging mode.
day_ahead_pricing_strategy
string
The day-ahead pricing strategy.
day_ahead_pricing_threshold
integer
The day-ahead pricing threshold.
day_ahead_pricing_smart_mode_price
number
The calculated smart mode price for day-ahead pricing.
off_peak_start
string
The off-peak start time in HH:mm format.
off_peak_end
string
The off-peak end time in HH:mm format.