Skip to main content
PUT
/
api
/
v1
/
fleets
/
{assetProviderCountryCode}
/
{assetProviderCode}
/
{vehicleId}
/
logbook
/
{logbookEntryId}
Update a logbook entry
curl --request PUT \
  --url https://api.smartmove.eu/m2m/api/v1/fleets/{assetProviderCountryCode}/{assetProviderCode}/{vehicleId}/logbook/{logbookEntryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "Business",
  "fromDatetime": "2025-10-07T10:24:41.143Z",
  "fromLocation": {
    "geoLatitude": 15.01,
    "geoLongitude": 2.8,
    "name": "smartmove location",
    "address": "Street 1, 1010 Vienna, Austria"
  },
  "fromMileage": 123,
  "toDatetime": "2025-10-07T10:24:41.143Z",
  "toLocation": {
    "geoLatitude": 15.01,
    "geoLongitude": 2.8,
    "name": "smartmove location",
    "address": "Street 1, 1010 Vienna, Austria"
  },
  "toMileage": 123,
  "driver": {
    "mobilityProviderCountryCode": "AT",
    "mobilityProviderCode": "ABC",
    "customerId": "828c2d1c-d933-4138-9577-02c292b6d869"
  },
  "note": "<string>"
}
'
{
  "id": 123,
  "type": "Business",
  "fromDatetime": "2025-10-07T10:24:41.143Z",
  "fromLocation": {
    "geoLatitude": 15.01,
    "geoLongitude": 2.8,
    "name": "smartmove location",
    "address": "Street 1, 1010 Vienna, Austria"
  },
  "fromMileage": 100,
  "created": "2025-10-07T10:24:41.143Z",
  "toDatetime": "2025-10-07T10:24:41.143Z",
  "toLocation": {
    "geoLatitude": 15.01,
    "geoLongitude": 2.8,
    "name": "smartmove location",
    "address": "Street 1, 1010 Vienna, Austria"
  },
  "toMileage": 340,
  "distance": 240,
  "driver": {
    "mobilityProviderCountryCode": "AT",
    "mobilityProviderCode": "ABC",
    "customerId": "828c2d1c-d933-4138-9577-02c292b6d869"
  },
  "note": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

assetProviderCountryCode
string
required

The two-letter country code of the asset provider the vehicles belong to

Required string length: 2
assetProviderCode
string
required

The three-character code of the asset provider the vehicles belong to

Required string length: 3
vehicleId
string
required

The id of the vehicle

logbookEntryId
string
required

The id of the logbook entry

Body

application/json

The request body contains the logbook entry that should be replace the other one under the specified id

type
enum<string>
required

Type of trip

Available options:
Business,
Private
fromDatetime
string<date-time>
required

Start time of the entry in UTC

Example:

"2025-10-07T10:24:41.143Z"

fromLocation
object
required
fromMileage
integer
required

Mileage at the start of the trip

toDatetime
string<date-time>

End time of the trip in UTC

Example:

"2025-10-07T10:24:41.143Z"

toLocation
object
toMileage
integer

Mileage at the end of the trip

driver
object
note
string

Additional note about the trip

Response

The update logbook entry

id
integer
required
type
enum<string>
required

Type of trip

Available options:
Business,
Private
fromDatetime
string<date-time>
required

Start time of the entry in UTC

Example:

"2025-10-07T10:24:41.143Z"

fromLocation
object
required
fromMileage
integer
required

Mileage at the start of the trip

Example:

100

created
string<date-time>

Creation time of the logbook entry in UTC

Example:

"2025-10-07T10:24:41.143Z"

toDatetime
string<date-time>

End time of the trip in UTC

Example:

"2025-10-07T10:24:41.143Z"

toLocation
object
toMileage
integer

Mileage at the end of the trip

Example:

340

distance
integer

Covered distance over the duration of the trip

Example:

240

driver
object
note
string

Additional note about the trip