The `/api/vehicle/odometerrecords/add` endpoint does not automatically link equipment to the newly created odometer record. This is by design because this endpoint allows users to insert odometer records in the past, which may or may not have the equipment on it.
-
If you wish to utilize the "Add Odometer Record" endpoint, you must first make an API call to `/api/vehicle/equipmentrecords` and filter the records where "isEquipped" is true, then add the ids of the equipment record as a string connected by spaces to your post object to the `/api/vehicle/odometerrecords/add` endpoint.
+
If you wish to utilize the "Add Odometer Record" endpoint and have equipped equipment automatically linked to it, add in a `autoIncludeEquipment` parameter set to true.
+
+
Example:
+
```
+
{
+
"date": "2026-01-03",
+
"initialOdometer": 15000,
+
"odometer": 16500,
+
"notes": "test",
+
"tags": "testing",
+
"autoIncludeEquipment": true
+
}
+
```
+
+
If you wish to edit past odometer records and have equipment that are no longer equipped, you can add the id's of the equipment in a string connected by spaces.