Skip to main content
PUT
/
v3
/
chargers
/
{charger}
/
proxy
Update Proxy Servers
curl --request PUT \
  --url https://app.plugchoice.com/api/v3/chargers/{charger}/proxy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "vendor_role": "<string>",
  "servers": [
    {
      "servers[].websocket": "<string>",
      "servers[].role": "<string>"
    }
  ]
}
'
{
  "data": [
    {
      "websocket_url": "<string>",
      "role": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ]
}
Updates the proxy server configuration for the specified charger. There must be exactly one leader across the vendor role and all server entries.
charger
string
required
The UUID of the charger.
vendor_role
string
required
The role of the vendor (Plugchoice) connection. Either ROLE_LEADER or ROLE_FOLLOWER.
servers
object[]
An array of proxy server configurations.

Response

data
object[]
The updated list of proxy server entries.