Moving a vehicle between accounts
This API is used to move a vehicle between accounts.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/backend/api.php?
Request parameters
To obtain the required data, append parameters to the request address. Parameters are specified after the question mark ? and are separated by the ampersand &.
-
cmd=veh_move_account — command to move the vehicle to another account
-
vehicle_id — identifier of the vehicle that needs to be moved to the account
-
account_id — number of the new account
-
node — the number of the node where the command should be executed
Example request
https://<server_address>/backend/api.php?cmd=veh_move_account&vehicle_id=23&account_id=1005&node=1
|
Response
{"code": 1, "msg": "Success move vehicle 23 to account 1005"}
|
In response to the API request, the following is returned:
-
code — result code:
-
1 — operation completed successfully
-
0 — error occurred during the operation
-
msg — message with a textual description of the operation result