EV Charger
Clear this EV charger's schedule
Clear the schedule set on this EV charger. The route is published ahead of the scheduler; every call returns 501 until it lands.
DELETE
/
ev-charger
/
{deviceId}
/
schedule
curl
curl --request DELETE \
--url 'https://api.amps.ai/ev-charger/device_abc123/schedule' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/ev-charger/device_abc123/schedule', {
method: 'DELETE',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/ev-charger/device_abc123/schedule'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.delete(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/ev-charger/{deviceId}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amps.ai/ev-charger/{deviceId}/schedule"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.amps.ai/ev-charger/{deviceId}/schedule")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/ev-charger/{deviceId}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": false,
"error": {
"code": "DEVICE_NOT_FOUND",
"message": "No matching device was found for the supplied details.",
"details": {
"description": "Device not found or access denied"
}
},
"meta": {
"requestId": "req_5pH1cQbY",
"timestamp": "2026-04-29T12:00:00.000Z",
"path": "/ev-charger/device_unknown_999",
"latencyMs": 5
}
}{
"success": false,
"error": {
"code": "NOT_IMPLEMENTED",
"message": "This API operation is not implemented.",
"details": {
"description": "Clearing a device schedule is not yet implemented."
}
},
"meta": {
"requestId": "req_NotImplYet3",
"timestamp": "2026-04-29T12:00:00.000Z",
"path": "/ev-charger/device_abc123/schedule",
"latencyMs": 1
}
}Authorizations
Path Parameters
The unique identifier for the EV Charger device.
Example:
"device_abc123"
Response
Device not found or access denied.
Uniform error response. The error.code identifies the failure, error.message carries a human-readable explanation, and error.details carries structured context (failed fields, conflicting action IDs, supported capabilities) where relevant.
Previous
List solar inverter devicesGet a paginated list of solar inverter devices with their last pull state
Next
⌘I
curl
curl --request DELETE \
--url 'https://api.amps.ai/ev-charger/device_abc123/schedule' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/ev-charger/device_abc123/schedule', {
method: 'DELETE',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/ev-charger/device_abc123/schedule'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.delete(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/ev-charger/{deviceId}/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amps.ai/ev-charger/{deviceId}/schedule"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.amps.ai/ev-charger/{deviceId}/schedule")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/ev-charger/{deviceId}/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": false,
"error": {
"code": "DEVICE_NOT_FOUND",
"message": "No matching device was found for the supplied details.",
"details": {
"description": "Device not found or access denied"
}
},
"meta": {
"requestId": "req_5pH1cQbY",
"timestamp": "2026-04-29T12:00:00.000Z",
"path": "/ev-charger/device_unknown_999",
"latencyMs": 5
}
}{
"success": false,
"error": {
"code": "NOT_IMPLEMENTED",
"message": "This API operation is not implemented.",
"details": {
"description": "Clearing a device schedule is not yet implemented."
}
},
"meta": {
"requestId": "req_NotImplYet3",
"timestamp": "2026-04-29T12:00:00.000Z",
"path": "/ev-charger/device_abc123/schedule",
"latencyMs": 1
}
}