PUT
/
api
/
v2
/
teams
/
{team_id}
/
sites
/
{site_id}
/
smart-charging
curl --request PUT \
  --url https://cloud.volttime.com/api/v2/teams/{team_id}/sites/{site_id}/smart-charging \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "timezone": "America/Hermosillo",
  "smart_charging": "architecto",
  "day_ahead_pricing_strategy": null,
  "day_ahead_pricing_threshold": 16,
  "off_peak_start": "13:49",
  "off_peak_end": "13:49"
}'
{
  "data": {
    "timezone": null,
    "smart_charging": "disabled",
    "day_ahead_pricing_strategy": "automatic",
    "day_ahead_pricing_threshold": null,
    "day_ahead_pricing_smart_mode_price": null,
    "off_peak_start": "23:00",
    "off_peak_end": "07:00"
  }
}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Path Parameters

team_id
integer
required

The ID of the team.

site_id
integer
required

The ID of the site.

Body

application/json
timezone
string
required

Must be a valid time zone, such as <code>Africa/Accra</code>.

Example:

"America/Hermosillo"

smart_charging
string
required
Example:

"architecto"

day_ahead_pricing_strategy
string
Example:

null

day_ahead_pricing_threshold
integer

This field is required when <code>day_ahead_pricing_strategy</code> is <code>manual</code>.

Example:

16

off_peak_start
string

This field is required when <code>smart_charging</code> is <code>off_peak</code>. Must be a valid date in the format <code>H:i</code>.

Example:

"13:49"

off_peak_end
string

This field is required when <code>smart_charging</code> is <code>off_peak</code>. Must be a valid date in the format <code>H:i</code>.

Example:

"13:49"

Response

200 - application/json
data
object

Was this page helpful?