Set display text
curl --request POST \
--url https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"settings": {}
}'import requests
url = "https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding"
payload = { "settings": {} }
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({settings: {}})
};
fetch('https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding', 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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding",
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([
'settings' => [
]
]),
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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding"
payload := strings.NewReader("{\n \"settings\": {}\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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding")
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 \"settings\": {}\n}"
response = http.request(request)
puts response.read_bodySettings
Set display text
POST
/
v3
/
chargers
/
{charger}
/
settings
/
screen-branding
Set display text
curl --request POST \
--url https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"settings": {}
}'import requests
url = "https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding"
payload = { "settings": {} }
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({settings: {}})
};
fetch('https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding', 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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding",
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([
'settings' => [
]
]),
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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding"
payload := strings.NewReader("{\n \"settings\": {}\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://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugchoice.com/v3/chargers/{charger}/settings/screen-branding")
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 \"settings\": {}\n}"
response = http.request(request)
puts response.read_bodyChanges the name or support contact a charger shows on its display. Plugchoice writes each value with
ChangeConfiguration. Returns 204 No Content when the charger accepts every value.
string
required
The UUID of the charger.
object
required
The settings to change, by key:
PredefinedCpoName, ContactDetail, or both. Each value is a string of at most 100 characters. An empty string clears the value.Errors
| Status | When |
|---|---|
400 | The charger is offline. |
422 | A value is too long, a key is not PredefinedCpoName or ContactDetail, or the charger did not accept the value. In that last case the body has reason set to value_rejected and key set to the refused key. |
⌘I