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
        • POSTProxy OCPP message
        • POSTSet charger configuration
        • POSTReset authorization cache
        • POSTSend local authorization list
        • POSTClear local authorization list
        • POSTInject fault
        • POSTClear fault
        • POSTPlug connector
        • POSTUnplug connector
        • POSTUnlock connector
        • POSTStart transaction
        • POSTStop transaction
        • POSTStart session
        • POSTStop session
        • POSTAuthorize ID tag
        • POSTEV requests energy
        • POSTEV stops energy
        • POSTPower update
OCPPLAB Gateway APICharger OperationsCommands

Clear local authorization list

||View as Markdown|
POST
https://host.com/ocpp/commands/clear-local-auth-list
POST
/ocpp/commands/clear-local-auth-list
1import requests
2
3url = "https://host.com/ocpp/commands/clear-local-auth-list"
4
5payload = { "target": { "charger_id": "dep-123" } }
6headers = {
7 "Authorization": "Bearer <token>",
8 "Content-Type": "application/json"
9}
10
11response = requests.post(url, json=payload, headers=headers)
12
13print(response.json())
1{
2 "msg": "Local authorization list cleared",
3 "entries_deleted": 2
4}
Send a local authorization list clear command to the selected charger. All entries are removed and the list version resets to 0.
Was this page helpful?
Previous

Send local authorization list

Next

Inject fault

Built with

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
targetobjectRequired

Single-charger target for command endpoints that do not support locations.

eventobjectRequired
Empty event payload for commands that only need a target.

Response

Local auth list cleared
statusstring or null
list_versioninteger or null
entries_receivedinteger or null
msgstring or null
entries_deletedinteger or null

Errors

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