Back to Approval Timesheet

POST Method Details for SubmitDates.

Submit list of days for user

Definition

https://app[x].timelog.com/[account name]/api/v{version}/approval/timesheets/submit-dates

Parameters

  • model object Submit dates model
    • Comment string Gets or sets the comment
    • Dates array List of dates to submit.
    • EmployeeUserID integer Gets or set the user id
    {
      "Comment": "",
      "Dates": "",
      "EmployeeUserID": 0
    }
  • version string The requested API version

Returns

  • [200] Timesheet dates was submitted.
    • ApprovalStatus integer
    • Date string
    • HasResubmittedRejectedRegistration boolean
    • Hours number
    • LastRejectedComment string
    • RecentRejectedComment object
    • RejectedRegistrations array
    {
      "ApprovalStatus": 0,
      "Date": "2024-05-05T00:00:00+00:00",
      "HasResubmittedRejectedRegistration": false,
      "Hours": 0.0,
      "LastRejectedComment": "",
      "RejectedRegistrations": ""
    }
  • [401] Invalid authentication token
  • [500] Unable to submit Timesheet dates for the user
    • 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": ""
    }