Create Mileage

Creates a vehicle mileage entry for a specified inspector on a particular date.

Resource Information

Scopemileage

Deprecated scope name:   create_mileage

App TypeAgency
Authorization TypeAccess token
URI /v4/mileage
HTTP MethodPOST
Automation Version(s)7.3.3

Request Information

Field or ParameterTypeRequiredValuesDescriptionAutomation Version
datedateTimeNoThe date on which the mileage is travelled.7.3.3
enddoubleNoThe ending mileage on the inspector's odometer reading.7.3.3
inspectorIdstringNo Get All Inspectors The ID number of the inspector.7.3.3
startdoubleNoThe starting mileage on the inspector's odometer reading.7.3.3
vehicleIdvehicleId{}NoA number, such as the license plate number or VIN, that identifies the vehicle used to complete an inspection.7.3.3
vehicleId.textstringNoThe localized display text.7.3.2
vehicleId.valuestringNoThe value for the specified parameter.7.3.2
langStringNoIndicates the language applied.7.3.2

Response Information

FieldTypeDescriptionAutomation Version
resultresult{}7.3.2
result.codestringA code identifying an associated item7.3.2
result.idstringThe unique identifier for the object, assigned by the Civic Platform server and provided in a response.7.3.2
result.isSuccessbooleanIndicates whether or not the operation on the item is successful. 7.3.2
result.messagestringA text message related to the operation.7.3.2
statusintegerThe record status.7.3.3