v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

Modify a Driving Period

put/v1/driving_periods/{id}

Path parameters

idinteger required

Denotes the ID of the Driving Period.

Request body

driver_idinteger

Specify the ID of the driver for whom you want to modify the Driving Period.

notesstring

Specify the notes of the Driving Period that you want to modify.

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
  }
}