Back to Absence Code

POST Method Details for CreateRegistrationByHours.

Create registration of absence with hours

Definition

https://app[x].timelog.com/[account name]/api/v{version}/absence-code/registration-by-hours

Parameters

  • model object Duration of this absence registration
    • AbsenceID integer Gets or sets the absence identifier.
    • Comment string Gets or sets the comment.
    • Date string Gets or sets the date.
    • Hours number Gets or sets the hours.
    • Minutes integer Gets or sets the minutes.
    {
      "AbsenceID": 0,
      "Comment": "",
      "Date": "2024-03-29T00:00:00+00:00",
      "Hours": 0.0,
      "Minutes": 0
    }
  • version string The requested API version

Returns

  • [200] Absence registration created
  • [401] Invalid authentication token
  • [500] Absence registration has failed
    • 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": ""
    }