Get Composite Schedule
curl --request POST \
--url https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connector_id": 123,
"duration": 123,
"charging_rate_unit": "<string>"
}
'import requests
url = "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule"
payload = {
"connector_id": 123,
"duration": 123,
"charging_rate_unit": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({connector_id: 123, duration: 123, charging_rate_unit: '<string>'})
};
fetch('https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector_id' => 123,
'duration' => 123,
'charging_rate_unit' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule"
payload := strings.NewReader("{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"connectorId": 123,
"scheduleStart": "<string>",
"chargingSchedule": {
"chargingRateUnit": "<string>",
"chargingSchedulePeriod": [
{
"startPeriod": 123,
"limit": 123,
"numberPhases": 123
}
],
"duration": 123,
"startSchedule": "<string>",
"minChargingRate": 123
}
}Actions
Get Composite Schedule
POST
/
v3
/
chargers
/
{charger}
/
actions
/
composite-schedule
Get Composite Schedule
curl --request POST \
--url https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connector_id": 123,
"duration": 123,
"charging_rate_unit": "<string>"
}
'import requests
url = "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule"
payload = {
"connector_id": 123,
"duration": 123,
"charging_rate_unit": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({connector_id: 123, duration: 123, charging_rate_unit: '<string>'})
};
fetch('https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector_id' => 123,
'duration' => 123,
'charging_rate_unit' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule"
payload := strings.NewReader("{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.plugchoice.com/api/v3/chargers/{charger}/actions/composite-schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector_id\": 123,\n \"duration\": 123,\n \"charging_rate_unit\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"connectorId": 123,
"scheduleStart": "<string>",
"chargingSchedule": {
"chargingRateUnit": "<string>",
"chargingSchedulePeriod": [
{
"startPeriod": 123,
"limit": 123,
"numberPhases": 123
}
],
"duration": 123,
"startSchedule": "<string>",
"minChargingRate": 123
}
}Retrieves the composite charging schedule from the charger. The composite schedule is a merged view of all active charging profiles for a given connector and time duration.
The UUID of the charger.
The ID of the connector to get the schedule for. Use
0 to get the schedule for the entire charge point.The duration in seconds for the requested schedule.
The unit in which the schedule should be expressed. Possible values:
A (Amperes), W (Watts).Response
The response status from the charger (
Accepted or Rejected).The connector ID for which the schedule is provided.
The start date and time of the composite schedule (ISO 8601).
The composite charging schedule.
Show chargingSchedule
Show chargingSchedule
The unit of the schedule (
A or W).Duration of the schedule in seconds.
Start date and time of the schedule (ISO 8601).
Minimum charging rate supported.
⌘I