{ "opencollection": "1.0.0", "info": { "name": "LocoNav Integration Alert Subscriptions API", "version": "v1" }, "request": { "auth": { "type": "apikey", "key": "User-Authentication", "value": "{{User-Authentication}}", "placement": "header" } }, "items": [ { "info": { "name": "Alert Subscriptions", "type": "folder" }, "items": [ { "info": { "name": "Create Alert Subscriptions", "type": "http" }, "http": { "method": "POST", "url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/vehicles/alerts/subscriptions", "body": { "type": "json", "data": "{}" } }, "docs": "
Each kind of alert will have different fields for alert_config, specific config is below :
\n“vehicle_numbers” : [], // array of vehicle number, wether this or id only one is processed, id first priority
\nin all kind either use vehicle id or number whichever applicable.
\nOverspeed
“kind”: “overspeed”,
“vehicleIds” : [], // array of vehicle ids
“includeAll” : “0”,
“alertConfig”:{
“speedLimit”: “200”,
“minDurationInMinutes”: “100”,"
},
{
"info": {
"name": "Update Alert Subscription",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.a.loconav.com/integration/api/v1/integration/api/v1/vehicles/alerts/subscriptions",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "
This endpoint allows the user to update the alert subscriptions for vehicles.
\nalertSubscriptions (array of objects) - An array containing the details of alert subscriptions.
id (number) - The ID of the alert subscription.
kind (string) - The type of alert subscription.