Update the OEM Entity of a Company

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Purpose: This endpoint allows you to edit the attributes of the OEM entities of your vehicle or asset.

šŸ“˜

Note

  1. All parameters are optional. Send only the fields you want to change. Parameters are sent at the top level of the JSON body.
  2. Entity type determines which fields are applied. Assets accept notes and group_ids. Carrier assets also accept v2_inspection_form_id, license_plate_state and license_plate_number. Vehicles accept all fields listed above. Parameters that do not apply to the entity type are ignored (no error).
  3. driver_id, latest_engine_hours and last_engine_hours_reading_at are processed for every entity type.
  4. latest_engine_hours and last_engine_hours_reading_at are all-or-none: sending only one of the either returns a 400 validation error.
  5. Engine hours calibration is supported only for entities from supported OEM integrations (currently Ford Pro and Stellantis) and only when the company has OEM engine hours enabled.
  6. Engine hours cannot be calibrated if they are already accurate for the entity (for example, reported directly by the OEM).

Response Parameters

oem_entities

  • Type: Array of Objects
  • Description: List of OEM (Original Equipment Manufacturer) entities associated with the system.

OEM entity fields

id

  • Type: Integer
  • Description: Unique identifier for the OEM entity.

updated_at

  • Type: String (Date-Time)
  • Description: Timestamp when the OEM entity was last updated.

status

  • Type: String
  • Description: Status of the OEM entity (e.g., active).

entity_type

  • Type: String
  • Description: Type of the entity (e.g., asset).

make

  • Type: String
  • Description: Manufacturer of the asset (e.g., KOMATSU).

model

  • Type: String
  • Description: Model of the asset (e.g., PC138USLC-11).

type

  • Type: String
  • Description: General type of the entity (e.g., other).

custom_type

  • Type: String
  • Description: Custom type identifier for the entity.

serial_number

  • Type: String
  • Description: Serial number of the asset.

vendor

  • Type: String
  • Description: Vendor or supplier of the asset (e.g., Komtrax (Komatsu)).

subtype

  • Type: String or null
  • Description: More specific classification of the entity (e.g., dry_van).

notes

  • Type: String or null
  • Description: Notes associated with the entity.

number

  • Type: String or null
  • Description: Number assigned to the entity (e.g., RER000033).

fuel_type

  • Type: String or null
  • Description: Fuel type associated with the entity (e.g., diesel).

license_plate_state

  • Type: String or null
  • Description: State or region shown on the entity's license plate (e.g., CA).

license_plate_number

  • Type: String or null
  • Description: License plate number for the entity.

year

  • Type: String or null
  • Description: Year associated with the entity (e.g., 2012).

v2_inspection_form_id

  • Type: Integer or null
  • Description: Identifier of the V2 inspection form associated with the entity.

license_plate_country

  • Type: String or null
  • Description: Country shown on the entity's license plate (e.g., US).

groups

  • Type: Array of Objects
  • Description: Groups associated with the entity. Each array item contains a group object.

groups[].group

  • Type: Object
  • Description: Group associated with the entity.

groups[].group.id

  • Type: Integer
  • Description: Unique identifier for the group.

groups[].group.name

  • Type: String
  • Description: Name of the group (e.g., West Coast).

driver

  • Type: Object or null
  • Description: Driver associated with the entity.

driver.id

  • Type: Integer
  • Description: Unique identifier for the driver.

driver.first_name

  • Type: String
  • Description: Driver's first name.

driver.last_name

  • Type: String
  • Description: Driver's last name.

name

  • Type: String or null
  • Description: Name associated with the entity (e.g., 1C6SRFGT7RN130933).

enroll_updated_at

  • Type: String (Date-Time) or null
  • Description: Timestamp when the entity's enrollment information was last updated.

latest_engine_hours

  • Type: Number or null
  • Description: Latest engine-hours reading for the entity.

last_engine_hours_reading_at

  • Type: String (Date-Time) or null
  • Description: Timestamp of the last engine-hours reading.

last_odometer_reading_at

  • Type: String (Date-Time) or null
  • Description: Timestamp of the last odometer reading.

latest_odometer_reading

  • Type: Number or null
  • Description: Latest odometer reading for the entity.

Error responses

Errors are returned as JSON: { "error_message": "..." }

Statuserror_messageCause
400invalid driver_iddriver_id is not an active driver in the company.
400invalid v2_inspection_form_idThe inspection form does not exist in the company.
400Please enter a valid engine_hours valuelatest_engine_hours is blank.
400Engine hours value cannot be negativelatest_engine_hours is below 0.
400Engine hours value cannot be 0latest_engine_hours is 0.
400Engine hours are not available (response also includes code: "ENGINE_HOURS_UNAVAILABLE")No engine hours data is available to calibrate against at the given reading time. The exact message text is generated by the service.
400OEM Entity could not be updated (response also includes details)Validation failure while saving. details contains the field errors.
400Validation error from the API frameworkOnly one of latest_engine_hours / last_engine_hours_reading_at was sent, or a parameter has the wrong type.
403Engine hours calibration is not supported for this OEM entityThe entity's vendor or company configuration does not support calibration.
404not foundEntity does not exist or is not accessible to the API key, or the feature is not enabled for the company.
422Engine hours are already accurate for this OEM entity; calibration is not allowedThe entity already reports accurate engine hours.
Path Params
int32
required

Specify the ID of the OEM Entity that you want to update.

Body Params
string

Enter the notes for a vehicle or an asset. For example: Vehicle due for routine maintenance

string

Specify the vehicle number. NOTE: This is not the VIN.

group_ids
array of int32s

Specify the Id or Ids of the group associated with the vehicle or the asset.

group_ids
string

Specify the state of the license plate of the vehicle or the asset.

string

Specify the license plate number of the vehicle or the asset.

string

Specify the country where the vehicle or the asset was registered.

int32

Specify the v2 Inspection Form ID that is associated with the vehicle or the asset.

int32

Specify the ID of the driver of the vehicle or the asset. Must be an active driver in the company. Send 0 or null to unassign.

float

True engine hours from a physical inspection. Must be greater than 0. Must be sent together with last_engine_hours_reading_at.

string

When the engine hours reading was taken. Must be sent together with latest_engine_hours. Needs to be in SO 8601 timestamp format

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json