Skip to main content
POST
/
v3
/
sites
/
{site}
/
chargers
Add Charger
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/{site}/chargers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "identity": "<string>",
  "pincode": 123
}
'
{
  "uuid": "<string>",
  "id": 123,
  "identity": "<string>",
  "connection_status": "<string>",
  "status": "<string>",
  "connectors": [
    {}
  ],
  "created_at": "<string>",
  "updated_at": "<string>"
}
Attaches an existing charger to the specified location using its identity and pincode.
site
string
required
The UUID of the location.
identity
string
required
The OCPP identity of the charger to attach. Maximum 255 characters.
pincode
number
required
The pincode of the charger.

Response

uuid
string
The unique UUID of the charger.
id
integer
The numeric ID of the charger.
identity
string
The charger’s OCPP identity string.
connection_status
string
The current connection status of the charger.
status
string
The current OCPP status of the charger.
connectors
array
An array of connector objects for this charger.
created_at
string
ISO 8601 timestamp of when the charger was created.
updated_at
string
ISO 8601 timestamp of when the charger was last updated.