Unmonitoring a License Plate
The Unmonitor License Plate API allows partners to remove a vehicle's license plate from being monitored by the Events Bridge system. Once a plate is unmonitored, the system will stop tracking the vehicle associated with that license plate.
API Endpoint
- HTTP Method:
DELETE - Endpoint:
/api/v1/lpr/monitor/{externalId} - Private Server Base URL:
https://10.0.0.123:5022 - Cloud Server Base URL:
https://customername.econnectcloud.com/eventsbridge
Authentication
This API call requires authentication with a JWT token, which must be passed in the header of the request.
Path Parameter
- externalId: The unique ID assigned by the partner's system to identify the vehicle being unmonitored. This ID must be the same one used during the initial enrollment, and it is case sensitive. This ID does not need to be the same as the plate value.
Code Examples
- C#
- Curl
- PowerShell
using eConnect.EventsBridge.Sdk;
// Assuming sdk is already initialized with authentication
// Define the externalId
string externalId = "12345";
// Unmonitor the license plate
await sdk.LprUnMonitorAsync(externalId);
# Define variables
API_URL="https://your-domain.com/eventsbridge"
TOKEN="your_token"
EXTERNAL_ID="12345"
# Unmonitor the license plate
curl -X DELETE "$API_URL/api/v1/lpr/monitor/$EXTERNAL_ID" \
-H "Authorization: Bearer $TOKEN"
# Define variables
$API_URL = "https://your-domain.com/eventsbridge"
$TOKEN = "your_token"
$EXTERNAL_ID = "12345"
# Unmonitor the license plate
Invoke-RestMethod -Uri "$API_URL/api/v1/lpr/monitor/$EXTERNAL_ID" -Method Delete -Headers @{ "Authorization" = "Bearer $TOKEN" }
Raw Sample
Here's an example of how to use the DELETE method to unmonitor a license plate:
Request
DELETE https://10.0.0.123:5022/api/v1/lpr/monitor/ABC123
Authorization: Bearer <your_jwt_token>
Content-Type: application/json
Response
- 200 OK: The license plate has been successfully removed from monitoring.
- 401 Unauthorized: Missing or invalid JWT token.
- 500 Internal Server Error: An issue occurred on the server side. The reason is returned in the problem details body.
Example Response
{}
The success response body is an empty object by design — LprUnmonitorResponse carries no fields. Treat the 200 status code as the result, and do not expect any properties to read.
Additional Notes
- Ensure that the
externalIdprovided in the URL is the same one used during the initial enrollment. Pass theexternalId, not the plate, unless they happen to be the same value in your system. - The system will return a
200 OKresponse if the plate was successfully unmonitored, or a500 Internal Server Errorif there were any issues processing the request. - To confirm the removal, follow up with License Plate Monitoring Status.