Skip to navigation

Create location, optionally with chargers

Returns 202 at once and deploys the chargers in the background. Follow progress with GET /evcharger/deployment-runtime-ops/status (client.evcharger.deployment_runtime_ops.status()) until every charger is online. With no chargers only the location is created; add chargers later with POST /evcharger/deployment and location_id. A failed charger does not abort the batch. Background work is not durable across restarts.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
Location display name.
addressstringRequired>=1 character
citystringRequired>=1 character
countrystringRequired>=1 character
coordinatesobjectRequired

GPS coordinates; lat in [-90,90], lng in [-180,180].

timezonestring or nullOptional
owner_namestring or nullOptional
publicboolean or nullOptional
chargerslist of objectsOptional

Chargers to deploy at this location. Optional: an empty list creates the location only; add chargers later with POST /evcharger/deployment and its location_id.

Response

Location creation accepted
detailstring
What was accepted and is running in the background.
location_idstring

Id of the location being created; pass it to DELETE /evcharger/location to remove the location and its chargers.

statusstringOptionalDefaults to accepted
Always 'accepted'.

Errors

401
Unauthorized Error
422
Unprocessable Entity Error