Carrier

Creates a new Driver

Creates a new driver under the carrier identified by the carrierId path parameter.

post/carrier/{carrierId}/driver

Path parameters

carrierIdstring required

Id of the carrier

Request body

first_namestring required
last_namestring required
usernamestring required
emailstring required
passwordstring required
cdl_numberstring required
receive_offersboolean required
phonestring required
carrierstring required

Example request

{
  "first_name": "john",
  "last_name": "doe",
  "username": "fakedriver123",
  "email": "fake@gmail.com",
  "password": "TestDriver1234",
  "carrier": "Cargomatic (demo)"
}

Response

Status Code 200: Successful Response - the request was successful!

successboolean

Example response

{
  "data": {
    "driverId": "64ac71ddb111de5422ff31ac"
  }
}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.