User APIs/Drivers
Create Driver
POST
/user/driversBearer token required
ADMIN | USERContent-Type:
application/jsonRequest Example
JSON
{
"name": "Ramesh Kumar",
"mobilePrefix": "+91",
"mobile": "9876543210",
"email": "ramesh@fleet.co"
}Code Examples
curl -X POST 'https://<your-domain>:3001/user/drivers' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Ramesh Kumar",
"mobilePrefix": "+91",
"mobile": "9876543210",
"email": "ramesh@fleet.co"
}'