Back to Mileage Registration

PUT Method Details for Update.

Update an existing mileage registration

Definition

https://app[x].timelog.com/[account name]/api/v{version}/mileage-registration

Parameters

  • model object
    • CarID integer Gets or sets the car identifier.
    • Date string Gets or sets the date.
    • Distance integer Gets or sets the distance.
    • EndAddress string Gets or sets the end address.
    • IsBillable boolean Gets or sets a value indicating whether this instance is billable.
    • IsRoundtrip boolean Gets or sets a value indicating whether this instance is roundtrip.
    • MileageRateID integer Gets or sets the mileage rates identifier.
    • MileageRegistrationID integer Gets or sets the mileage registration identifier.
    • OdometerEnd integer Gets or sets the odometer end.
    • OdometerStart integer Gets or sets the odometer start.
    • ProjectID integer Gets or sets the project identifier.
    • Purpose string Gets or sets the purpose.
    • StartAddress string Gets or sets the start address.
    • TravelTimeRegistration object Gets or sets the travel time registration
    {
      "CarID": 0,
      "Date": "2021-07-26T00:00:00+00:00",
      "Distance": 0,
      "EndAddress": "",
      "IsBillable": false,
      "IsRoundtrip": false,
      "MileageRateID": 0,
      "MileageRegistrationID": 0,
      "OdometerEnd": 0,
      "OdometerStart": 0,
      "ProjectID": 0,
      "Purpose": "",
      "StartAddress": ""
    }
  • deleteTravelTimeRegistration boolean Travel time registration delete flag
  • version string The requested API version

Returns

  • [200] Mileage registration was updated successfully
    • Car object Gets or sets the car.
    • CarID integer Gets or sets the car identifier.
    • Date string Gets or sets the date.
    • Distance integer Gets or sets the distance.
    • EndAddress string Gets or sets the end address.
    • ID string Gets or sets the identifier.
    • InterfaceCreated integer Gets or sets the interface created.
    • InterfaceModified integer Gets or sets the interface modified.
    • IsApproved boolean Gets or sets a value indicating whether this instance is approved.
    • IsBillable boolean Gets or sets a value indicating whether this instance is billable.
    • IsInvoiced boolean Gets or sets a value indicating whether this instance is invoiced.
    • IsRoundtrip boolean Gets or sets a value indicating whether this instance is roundtrip.
    • MileageRate object Gets or sets the mileage rate.
    • MileageRatesID integer Gets or sets the mileage rates identifier.
    • MileageRegistrationID integer Gets or sets the mileage registration identifier.
    • OdometerEnd integer Gets or sets the odometer end.
    • OdometerStart integer Gets or sets the odometer start.
    • Project object Gets or sets the project.
    • ProjectID integer Gets or sets the project identifier.
    • Purpose string Gets or sets the purpose.
    • StartAddress string Gets or sets the start address.
    • TotalDistance number Gets or sets the total distance.
    • TravelTimeRegistration object Gets or sets the travel time registration.
    • UnitType integer Gets or sets the type of the unit.
    • UserID integer Gets or sets the user identifier.
    {
      "CarID": 0,
      "Date": "2021-07-26T00:00:00+00:00",
      "Distance": 0,
      "EndAddress": "",
      "ID": "00000000-0000-0000-0000-000000000000",
      "InterfaceCreated": 0,
      "InterfaceModified": 0,
      "IsApproved": false,
      "IsBillable": false,
      "IsInvoiced": false,
      "IsRoundtrip": false,
      "MileageRatesID": 0,
      "MileageRegistrationID": 0,
      "OdometerEnd": 0,
      "OdometerStart": 0,
      "ProjectID": 0,
      "Purpose": "",
      "StartAddress": "",
      "TotalDistance": 0.0,
      "UnitType": 0,
      "UserID": 0
    }
  • [401] Invalid authentication token
  • [500] Failed to update the mileage registration
    • Code integer Gets the code.
    • Details array Gets the details.
    • Message string Gets the message.
    • Parameters string Gets the parameters.
    • Url string Gets the URL.
    {
      "Code": 0,
      "Details": "",
      "Message": "",
      "Parameters": "",
      "Url": ""
    }