Updates vehicle with a specified id either fully or partially.

SecurityAPIKey
Request
path Parameters
id
required
string or null^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}...

ID of the vehicle to be updated (GUID).

Request Body schema: application/json
name
string or null [ 1 .. 50 ] characters

Name of the vehicle.

driverId
string or null^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}...

ID of the driver which will be assigned to the vehicle.

deviceId
string or null^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}...

Id of the device in the vehicle.

deviceSerialNumber
string or null [ 1 .. 50 ] characters

Serial number of the device in the vehicle.

type
integer or null <int32> [ 0 .. 32767 ]

ID of the type of the vehicle.

groupId
string or null^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}...

ID of the group where the vehicle will be assigned.

status
integer or null <int32> [ 1 .. 32767 ]

ID of the status of the vehicle. By default the vehicle will be in service.

seatbeltType
integer or null <int32> [ 0 .. 32767 ]

ID of the seatbelt type in the vehicle. By default the vehicle will has shoulder harness seatbelts.

licensePlateNumber
string or null [ 1 .. 50 ] characters

License plate number of the vehicle.

countrySubdivisionId
integer or null <int32> [ 0 .. 2147483647 ]

Id of the country subdivision.

vin
string or null = 17 characters ^[A-HJ-NPR-Z0-9]{17}$

VIN of the vehicle.

make
string or null [ 1 .. 250 ] characters

Make of the vehicle.

model
string or null [ 1 .. 250 ] characters

Model of the vehicle.

year
integer or null <int32>

Production year of the vehicle.

(HibernationDelay (string or null))

Hibernation delay of the vehicle.

Responses
200

Vehicle updated. Vehicle with updated properties is returned.

400

The parameters given in the request are invalid.

401

Unauthorized due to providing an invalid access key, or invalid pod.

403

You have no permissions to make this operation.

404

Vehicle does not exist.

409

Vehicle with provided name already exists.

500

Requested operation cannot be performed.

503

Requested operation cannot be performed. Try again later.

patch/{id}
Request samples
application/json
{
  • "name": "string",
  • "driverId": "string",
  • "deviceId": "string",
  • "deviceSerialNumber": "string",
  • "type": 32767,
  • "groupId": "string",
  • "status": 1,
  • "seatbeltType": 32767,
  • "licensePlateNumber": "string",
  • "countrySubdivisionId": 2147483647,
  • "vin": "stringstringstrin",
  • "make": "string",
  • "model": "string",
  • "year": 0,
  • "hibernationDelay": "UseDefault"
}
Response samples
application/json
{
  • "id": "string",
  • "name": "string",
  • "type": 0,
  • "status": 0,
  • "licensePlateNumber": "string",
  • "countrySubdivision": "string",
  • "lastConnected": "2019-08-24T14:15:22Z",
  • "driverId": "string",
  • "groupId": "string",
  • "vin": "string",
  • "seatbeltType": 0,
  • "make": "string",
  • "model": "string",
  • "year": 0,
  • "deviceId": "string",
  • "hibernationDelay": "UseDefault"
}