Back to Workload

POST Method Details for BookWorkload.

Books a workload

Definition

https://app[x].timelog.com/[account name]/api/v{version}/workload/book

Parameters

  • model object
    • EmployeeId integer
    • EndDate string
    • Hours number
    • StartDate string
    • TaskId integer
    {
      "EmployeeId": 0,
      "EndDate": "2024-12-22T00:00:00+00:00",
      "Hours": 0.0,
      "StartDate": "2024-12-22T00:00:00+00:00",
      "TaskId": 0
    }
  • version string The requested API version

Returns

  • [200] Booking was created successfully
  • [202] Message was received, booking will be created shortly
  • [400] Booking could not be created
    • 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": ""
    }
  • [401] Invalid authentication token
  • [500] Booking could not be created
    • 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": ""
    }