Assign drivers to unidentified driving periods (UDEs/DPEs)
put/v1/driving_periods/{driving_period_id}?driver_id={driver_id}
Request
- Base URLhttps://api.gomotive.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
driving_period_idinteger required
Specify the ID of the driving period for which you want to assign a driver.
Query parameters
driver_idinteger required
Specify the ID of the driver to whom you are assigning this driving period.
notesstring
Specify any notes or reason for assigning this trip to the driver.
Response
200
Example response
{
"driving_period": {
"id": 3194257939,
"start_time": "2025-04-23T17:18:20Z",
"status": "in_progress",
"type": "driving",
"duration": 2184.485373561,
"start_kilometers": 883.43138212,
"driver": {
"id": 5320032,
"first_name": "Archit",
"last_name": "Dubey",
"email": "archit.dubey+driver@gomotive.com",
"username": "archit.dubey"
},
"vehicle": {
"id": 1866981,
"number": "04021994",
"year": "2018",
"make": "Honda",
"model": "Amaze",
"metric_units": true
},
"origin_lat": -1,
"origin_lon": -1
}
}Changes
No recorded changes to this operation across all 1 revision of this API.