Back to Time Registration

POST Method Details for ImportTimeregistration.

Import time registration.

Definition

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

Parameters

  • timeRegistrationImportApiCreateModel object The time registration import API create model.
    • AbsenceCodeID integer Gets or sets the type of the group.
    • AdditionalComment string Gets or sets the additional comment.
    • Billable boolean Gets or sets a value indicating whether this {TimeLog.TLP.Web.WebApi.V1.TimeRegistration.Models.TimeRegistration.TimeRegistrationApiCreateModel} is billable.
    • BillableHours number Gets or sets the billable hours.
    • Comment string Gets or sets the comment.
    • ContractID integer Gets or sets the contract identifier.
    • CostPrice number Gets or sets the cost price.
    • CostPriceName string Gets or sets the cost price name.
    • Date string Gets or sets the date.
    • GroupType integer Gets or sets the type of the group.
    • HourlyRate number Gets or sets the hourly rate.
    • HourlyRateName string Gets or sets the hourly rate name.
    • Hours number Gets or sets the hours.
    • MonthlyPeriod string
    • ProjectID integer Gets or sets the project identifier.
    • TaskID integer Gets or sets the task identifier.
    • UserID integer Gets or sets the user identifier.
    {
      "AbsenceCodeID": 0,
      "AdditionalComment": "",
      "Billable": false,
      "BillableHours": 0.0,
      "Comment": "",
      "ContractID": 0,
      "CostPrice": 0.0,
      "CostPriceName": "",
      "Date": "2024-12-22T00:00:00+00:00",
      "GroupType": 0,
      "HourlyRate": 0.0,
      "HourlyRateName": "",
      "Hours": 0.0,
      "MonthlyPeriod": "",
      "ProjectID": 0,
      "TaskID": 0,
      "UserID": 0
    }
  • version string The requested API version

Returns

  • [200] Time registration was created from import
  • [401] Invalid authentication token
  • [500] Time registration could not be imported