POST Method Details for Create.
Create a new mileage registration for the project
Definition
https://app[x].timelog.com/[account name]/api/v{version}/project-header/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 rate 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.
- ProjectSubContractID integer Gets or sets the project sub contract identifier the mileage is booked on. When omitted or 0, the project's default mileage contract is used. Prepaid services contracts cannot be selected.
- Purpose string Gets or sets the purpose.
- StartAddress string Gets or sets the start address.
- TimeRegistrationID integer Gets or sets the time registration identifier.
- UserID integer Gets or sets the user identifier of the employee the mileage registration is created for. When omitted, the mileage registration is created for the current user. Creating a mileage registration for another user requires the same privileges as registering time on their behalf.
- version string The requested API version
Returns
-
[200] Mileage registration was created 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.
- ProjectSubContractID integer Gets or sets the project sub contract identifier the mileage is booked on.
- 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.
- [401] Invalid authentication token
-
[500] Failed to create the mileage registration
- Code integer Gets the code.
- Details array Gets the details.
- DeveloperNote object
- Message string Gets the message.
- Parameters string Gets the parameters.
- Url string Gets the URL.