Method:
POST
Header Param:
Authorization: "The Login Token from Server"
Body:
{
"loginToken": "loginToken",
"userId": "userId",
"switchRole": "role"
}
Response:
{
"_id": "5a747049417e820e1f8d64f6",
"__v": 0,
"serviceOrders": [],
"businessPhone": "",
"routingNumber": "",
"bankAccount": "",
"companyId": [
"5ab1dd3c9483b266179f90d7",
"5ab1e150ab6ba88419bc3987"
],
"currentLocation": "39.2008516,-77.262523",
"status": "off duty",
"statusLog": [],
"dotMedicalExpiration": "",
"dotMedical": "",
"insuranceExpiration": "",
"insuranceInfo": "",
"ssn": "",
"vehicles": [
{
"_id": "5a79a7536506fe4134df413c",
"state": "",
"tagPlate": "",
"vinNumber": "12345678901234567",
"color": "Silver",
"year": "2017",
"model": "S8",
"make": "Audi",
"description": "2017 | Audi | S8 | 01234567"
},
{
"_id": "5a7d196bb7eb8242478beef1",
"state": "",
"tagPlate": "dd",
"vinNumber": "12345678901234568",
"color": "Beige",
"year": "2224",
"model": "CCC",
"make": "MERCEDES",
"description": "2224 | MERCEDES | CCC | 01234568"
},
{
"_id": "5a85a969caa4d9284294f814",
"state": "",
"tagPlate": "TAG",
"vinNumber": "12345678901234569",
"color": "Color",
"year": "2018",
"model": "LS500",
"make": "Lexus",
"description": "2018 | Lexus | LS500 | 01234569"
},
{
"_id": "5a8ce65abb56ffaa6660ab7e",
"state": "State",
"tagPlate": "TAGPLATE",
"vinNumber": "12345678901234560",
"color": "Color",
"year": "2004",
"model": "Civic",
"make": "HONDA",
"description": "2004 | HONDA | Civic | 01234560"
}
],
"assignedRoles": [
{
"type": "client"
},
{
"type": "companyOwner",
"companies": [
{
"companyId": "5acdac998f99d66b292aabb3",
"suspended": false
}
]
}
],
"type": "client"
}