Skip to main content
POST
/
v3
/
chargers
/
{charger}
/
settings
/
socket-lock
Set Socket Lock
curl --request POST \
  --url https://app.plugchoice.com/api/v3/chargers/{charger}/settings/socket-lock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
Locks or unlocks the charging socket for the specified charger. When locked, the charging cable is held in place and cannot be removed. Returns a 204 No Content response on success.
charger
string
required
The UUID of the charger.
enabled
boolean
required
Set to true to lock the socket or false to unlock it.