deleteVehicleProfile
Command
Deletes a vehicle profile
Send this JSON-RPC message in the
BND_MESSAGE extra of an Intent with the action ACTION_RNC_BROADCAST, to BeNav's activity or receiver: see Sending commands.Removes a profile the client application created. Used when a vehicle leaves the fleet, or when a device is reassigned and the previous vehicle's definition should not be selectable any more.
Worth knowing
- Only profiles created over RNC can be deleted; profiles the driver created are not affected.
- An unknown id returns
27 profile.not.found.error.
Command#
json
{
"id": 1,
"jsonrpc": "2.0",
"method": "deleteVehicleProfile",
"params": {
"id": "custom_profile_1"
}
}Response#
Success#
json
{"id":"1","jsonrpc":"2.0","result":{}}Error#
Generic errors, or if the profile is not found:
json
{
"id": "1",
"jsonrpc": "2.0",
"error": {
"code": 27,
"message": "profile.not.found.error"
}
}