User Manual
Version 7.6
×

Create a new driver

 
Example:
https://<address>/api/api.php?cmd=drivers_add
 
Parameters:
cmd : drivers_add
name:  Driver's name
code:  driver iButton code - optional
description:  description - optional
phone: driver's phone number - optional
license: driver's license number - optional
email: email
access: comma-separated list of agent_id to which the driver is allowed to access
If such a driver is already entered - the data will be updated, if not, a new driver will be entered
 
Request:
https://<address>/api/api.php?cmd=drivers_add&name=NewDriverName&code=123456&description=DESCR&phone=122212343&license=rrr3335552&email=new@email.com&access=1122
 
Answer :
{
   "code":0,
   "data":{
      "id":16990,
      "name":"NewDriverName",
      "code":"123456",
      "description":"DESCR",
      "phone":"122212343",
      "license":"rrr3335552",
      "email":"new@email.com",
      "access":[
         1122,
         3344
      ]
   }
}