Skip to navigation

Update report

Partially updates a driver’s self-reported hours worked and/or miles driven for a calendar day. Caller must be the driver themselves. | authz: allowed_org_types=[provider], min_org_role=driver | (DriverSelfReportedHoursAndMileageClientUpdate1) -> (DriverSelfReportedHoursAndMileage1)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

driver_idstringRequired
report_datestringRequiredformat: "date"

Request

This endpoint expects an object.
hours_workeddouble or nullOptional0-24
hours_worked__set_to_NonebooleanOptionalDefaults to false
miles_drivendouble or nullOptional>=0
miles_driven__set_to_NonebooleanOptionalDefaults to false

Response

Successful Response
_idstring
created_at_timestampstringformat: "date-time"
created_by_user_idstring

Must be a string starting with user_

datestringformat: "date"
driver_idstring
org_idstring

Must be a string starting with org_

schema_versioninteger
updated_atstringformat: "date-time"
hours_workeddouble or nullOptional0-24
miles_drivendouble or nullOptional>=0

Errors

422
Unprocessable Entity Error