POST Api/v1/Vehicles

Creates a new vehicle.

Request Information

URI Parameters

None.

Body Parameters

vehicle command

VehicleCommand
NameDescriptionTypeAdditional information
Number

string

Required

LicensePlate

string

String length: inclusive between 0 and 255

Odometer

decimal number

Range: inclusive between 0 and 1.79769313486232E+308

Trailer

string

String length: inclusive between 0 and 255

Terminal

string

Required

String length: inclusive between 0 and 255

OrganizationId

integer

None.

OverrideCompanyAutoDutyStatusSetting

boolean

None.

AutoDutyStatusDisabled

boolean

None.

HosEnabled

boolean

None.

ChangingHosEnabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "number": "sample string 1",
  "licensePlate": "sample string 2",
  "odometer": 3.0,
  "trailer": "sample string 4",
  "terminal": "sample string 5",
  "organizationId": 1,
  "overrideCompanyAutoDutyStatusSetting": true,
  "autoDutyStatusDisabled": true,
  "hosEnabled": true,
  "changingHosEnabled": true
}

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.