For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
DocsAPI Reference
Dashboard
LogoLogo
DocsAPI Reference
  • OCPPLAB Gateway API
        • GETList locations
        • POSTCreate location
        • GETGet location
        • PUTUpdate location
        • DELDelete location
OCPPLAB Gateway APICore ResourcesLocations

Update location

||View as Markdown|
PUT
https://host.com/ocpp/locations/:location_id
PUT
/ocpp/locations/:location_id
1import requests
2
3url = "https://host.com/ocpp/locations/4090477f-a416-4515-a302-97aa344a0a2a"
4
5payload = {
6 "name": "La Defense Charging Hub - West",
7 "timezone": "Europe/Paris",
8 "public": False
9}
10headers = {
11 "Authorization": "Bearer <token>",
12 "Content-Type": "application/json"
13}
14
15response = requests.put(url, json=payload, headers=headers)
16
17print(response.json())
1{
2 "id": "4090477f-a416-4515-a302-97aa344a0a2a",
3 "slug": "paris-la-defense-hub-a1b2c3d4",
4 "name": "La Defense Charging Hub - West",
5 "address": "14 Rue de la Paix",
6 "city": "Paris",
7 "country": "FR",
8 "coordinates": {
9 "latitude": 48.8566,
10 "longitude": 2.3522
11 },
12 "timezone": "Europe/Paris",
13 "owner_name": "VINCI Autoroutes",
14 "public": false,
15 "status": "active",
16 "created_at": "2026-04-02T09:15:00Z",
17 "updated_at": "2026-04-03T11:30:00Z"
18}
Partially update a location. Only supplied fields are modified.
Was this page helpful?
Previous

Get location

Next

Delete location

Built with

Authentication

AuthorizationBearer

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

Path parameters

location_idstringRequired
Internal location identifier returned by the location CRUD API.

Request

This endpoint expects an object.
slugstring or nullOptional
namestring or nullOptional
addressstring or nullOptional
citystring or nullOptional
countrystring or nullOptional=2 characters
coordinatesobject or nullOptional

Normalized latitude/longitude pair accepted by the location API.

timezonestring or nullOptional
owner_namestring or nullOptional
publicboolean or nullOptional
statusstring or nullOptional

Response

Location updated successfully
idstring
slugstring or null
namestring or null
addressstring or null
citystring or null
countrystring or null
coordinatesobject or map from strings to any or null
timezonestring or null
owner_namestring or null
publicboolean or null
statusstring or null
created_atdatetime or null
updated_atdatetime or null

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error