put
https://api.gomotive.com/v1/oem_entities/id
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
Loadingā¦
Purpose: This endpoint allows you to edit the attributes of the OEM entities of your vehicle or asset.
Note
- All parameters are optional. Send only the fields you want to change. Parameters are sent at the top level of the JSON body.
- 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).
- driver_id, latest_engine_hours and last_engine_hours_reading_at are processed for every entity type.
- latest_engine_hours and last_engine_hours_reading_at are all-or-none: sending only one of the either returns a 400 validation error.
- 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.
- Engine hours cannot be calibrated if they are already accurate for the entity (for example, reported directly by the OEM).
Response Parameters
oem_entities
oem_entities- Type: Array of Objects
- Description: List of OEM (Original Equipment Manufacturer) entities associated with the system.
OEM entity fields
id
id- Type: Integer
- Description: Unique identifier for the OEM entity.
updated_at
updated_at- Type: String (Date-Time)
- Description: Timestamp when the OEM entity was last updated.
status
status- Type: String
- Description: Status of the OEM entity (e.g.,
active).
entity_type
entity_type- Type: String
- Description: Type of the entity (e.g.,
asset).
make
make- Type: String
- Description: Manufacturer of the asset (e.g.,
KOMATSU).
model
model- Type: String
- Description: Model of the asset (e.g.,
PC138USLC-11).
type
type- Type: String
- Description: General type of the entity (e.g.,
other).
custom_type
custom_type- Type: String
- Description: Custom type identifier for the entity.
serial_number
serial_number- Type: String
- Description: Serial number of the asset.
vendor
vendor- Type: String
- Description: Vendor or supplier of the asset (e.g.,
Komtrax (Komatsu)).
subtype
subtype- Type: String or
null - Description: More specific classification of the entity (e.g.,
dry_van).
notes
notes- Type: String or
null - Description: Notes associated with the entity.
number
number- Type: String or
null - Description: Number assigned to the entity (e.g.,
RER000033).
fuel_type
fuel_type- Type: String or
null - Description: Fuel type associated with the entity (e.g.,
diesel).
license_plate_state
license_plate_state- Type: String or
null - Description: State or region shown on the entity's license plate (e.g.,
CA).
license_plate_number
license_plate_number- Type: String or
null - Description: License plate number for the entity.
year
year- Type: String or
null - Description: Year associated with the entity (e.g.,
2012).
v2_inspection_form_id
v2_inspection_form_id- Type: Integer or
null - Description: Identifier of the V2 inspection form associated with the entity.
license_plate_country
license_plate_country- Type: String or
null - Description: Country shown on the entity's license plate (e.g.,
US).
groups
groups- Type: Array of Objects
- Description: Groups associated with the entity. Each array item contains a
groupobject.
groups[].group
groups[].group- Type: Object
- Description: Group associated with the entity.
groups[].group.id
groups[].group.id- Type: Integer
- Description: Unique identifier for the group.
groups[].group.name
groups[].group.name- Type: String
- Description: Name of the group (e.g.,
West Coast).
driver
driver- Type: Object or
null - Description: Driver associated with the entity.
driver.id
driver.id- Type: Integer
- Description: Unique identifier for the driver.
driver.first_name
driver.first_name- Type: String
- Description: Driver's first name.
driver.last_name
driver.last_name- Type: String
- Description: Driver's last name.
name
name- Type: String or
null - Description: Name associated with the entity (e.g.,
1C6SRFGT7RN130933).
enroll_updated_at
enroll_updated_at- Type: String (Date-Time) or
null - Description: Timestamp when the entity's enrollment information was last updated.
latest_engine_hours
latest_engine_hours- Type: Number or
null - Description: Latest engine-hours reading for the entity.
last_engine_hours_reading_at
last_engine_hours_reading_at- Type: String (Date-Time) or
null - Description: Timestamp of the last engine-hours reading.
last_odometer_reading_at
last_odometer_reading_at- Type: String (Date-Time) or
null - Description: Timestamp of the last odometer reading.
latest_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": "..." }
| Status | error_message | Cause |
|---|---|---|
| 400 | invalid driver_id | driver_id is not an active driver in the company. |
| 400 | invalid v2_inspection_form_id | The inspection form does not exist in the company. |
| 400 | Please enter a valid engine_hours value | latest_engine_hours is blank. |
| 400 | Engine hours value cannot be negative | latest_engine_hours is below 0. |
| 400 | Engine hours value cannot be 0 | latest_engine_hours is 0. |
| 400 | Engine 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. |
| 400 | OEM Entity could not be updated (response also includes details) | Validation failure while saving. details contains the field errors. |
| 400 | Validation error from the API framework | Only one of latest_engine_hours / last_engine_hours_reading_at was sent, or a parameter has the wrong type. |
| 403 | Engine hours calibration is not supported for this OEM entity | The entity's vendor or company configuration does not support calibration. |
| 404 | not found | Entity does not exist or is not accessible to the API key, or the feature is not enabled for the company. |
| 422 | Engine hours are already accurate for this OEM entity; calibration is not allowed | The entity already reports accurate engine hours. |
