Send Charger Action
const url = 'https://api.exolink.cloud/tenant/example/charger/1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"GetConfiguration","protocol":"ocpp1.6","data":{"key":["example"]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.exolink.cloud/tenant/example/charger/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "action": "GetConfiguration", "protocol": "ocpp1.6", "data": { "key": [ "example" ] } }'Send an OCPP command to the charger, or disconnect it from the platform.
Reset is refused while a connector is charging. Blocked chargers accept no action.
GetDiagnostics (OCPP 1.6) has the tenant’s broker send a one-time FTP location, valid for an
hour; a new request revokes the previous one. The file then shows up under /diagnostics.
Without startTime and stopTime it asks for the last 24 hours. The FTP server starts on
demand: while it starts the response says preparing, and the request reaches the charger
about a minute later.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant domain prefix
Request Bodyrequired
Section titled “Request Bodyrequired”object
OCPP command, or Disconnect to close the charger’s sessions
OCPP version of the command
object
Keys that hold credentials, such as AuthorizationKey, are rejected.
object
Empty clears the key. The charger’s answer arrives on the live OCPP stream; GET the configuration again to see the stored value.
object
Start of the requested period, 24 hours before stopTime when left out
End of the requested period, now when left out
object
object
object
Connector, or 0 for the whole charger
object
Omit to change the whole charging station
object
Responses
Section titled “Responses”Action sent successfully. Disconnect returns an empty object.
The OCPP message sent to the charger
object
Tenant domain prefix
Charger identity
Milliseconds since the epoch
The serialized OCPP CALL
object
The answer to a GetDiagnostics action
object
Preparing while the FTP server starts; the request is sent once it runs
Empty object
object
Example
{ "message": "[2,\"0b7b3d36-...\",\"Reset\",{\"type\":\"Soft\"}]", "msgFrom": "exolink"}Malformed request
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Bad Request", "errorCode": "ERR_API_BAD_REQUEST"}Missing, invalid or expired credentials
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Not authorized", "errorCode": "ERR_API_NOT_AUTHORIZED"}The caller may not perform this action
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Forbidden", "errorCode": "ERR_API_FORBIDDEN"}Resource not found
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Charger '7' not found", "errorCode": "ERR_API_RESOURCE_NOT_FOUND"}Resource is in use
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "CPMS is in use", "errorCode": "ERR_API_RESOURCE_IN_USE"}Validation or verification failed
Error response. Some rejections carry only message.
object
Error message
Error code
Failed validations, for requests checked against a schema
object
Path of the invalid field
Example
{ "message": "Missing parameter: displayName", "errorCode": "ERR_API_VALIDATION_FAILED"}