POST api/DriverModelApi/PostDriverModel

Request Information

URI Parameters

None.

Body Parameters

DriverModelApi
NameDescriptionTypeAdditional information
ID

integer

None.

FirstName

string

None.

LastName

string

None.

Password

string

None.

Truck

string

None.

DeviceToken

string

None.

DriverLocation

AddressModelApi

None.

Address

AddressModelApi

None.

ContactInformation

ContactInfoModelApi

None.

DriverLicense

DriverLicenseModelApi

None.

Role

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Password": "sample string 4",
  "Truck": "sample string 5",
  "DeviceToken": "sample string 6",
  "DriverLocation": {
    "ID": 1,
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "City": "sample string 4",
    "State": "sample string 5",
    "ZipCode": "sample string 6",
    "Lat": 7.1,
    "Long": 8.1
  },
  "Address": {
    "ID": 1,
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "City": "sample string 4",
    "State": "sample string 5",
    "ZipCode": "sample string 6",
    "Lat": 7.1,
    "Long": 8.1
  },
  "ContactInformation": {
    "ID": 1,
    "PhoneNumber": "sample string 2",
    "FaxNumber": "sample string 3",
    "Email": "sample string 4",
    "SSN": "sample string 5",
    "TaxID": "sample string 6"
  },
  "DriverLicense": {
    "ID": 1,
    "DriverLicenseNumber": "sample string 2",
    "DriverLicenseExpiry": "2023-11-28T09:13:04.2112892+00:00",
    "DriverMedicalExpiry": "2023-11-28T09:13:04.2112892+00:00"
  },
  "Role": "sample string 7",
  "Active": true
}

application/xml, text/xml

Sample:
<DriverModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <Password>sample string 4</Password>
  <Truck>sample string 5</Truck>
  <DeviceToken>sample string 6</DeviceToken>
  <DriverLocation>
    <ID>1</ID>
    <Address1>sample string 2</Address1>
    <Address2>sample string 3</Address2>
    <City>sample string 4</City>
    <State>sample string 5</State>
    <ZipCode>sample string 6</ZipCode>
    <Lat>7.1</Lat>
    <Long>8.1</Long>
  </DriverLocation>
  <Address>
    <ID>1</ID>
    <Address1>sample string 2</Address1>
    <Address2>sample string 3</Address2>
    <City>sample string 4</City>
    <State>sample string 5</State>
    <ZipCode>sample string 6</ZipCode>
    <Lat>7.1</Lat>
    <Long>8.1</Long>
  </Address>
  <ContactInformation>
    <ID>1</ID>
    <PhoneNumber>sample string 2</PhoneNumber>
    <FaxNumber>sample string 3</FaxNumber>
    <Email>sample string 4</Email>
    <SSN>sample string 5</SSN>
    <TaxID>sample string 6</TaxID>
  </ContactInformation>
  <DriverLicense>
    <ID>1</ID>
    <DriverLicenseNumber>sample string 2</DriverLicenseNumber>
    <DriverLicenseExpiry>2023-11-28T09:13:04.2112892+00:00</DriverLicenseExpiry>
    <DriverMedicalExpiry>2023-11-28T09:13:04.2112892+00:00</DriverMedicalExpiry>
  </DriverLicense>
  <Role>sample string 7</Role>
  <Active>true</Active>
</DriverModelApi>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.