Back to Approval Timesheet

POST Method Details for SubmitPeriod.

Submit range of dates for user

Definition

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

Parameters

  • model object Submit period model.
    • Comment string Gets or sets the comment
    • EmployeeUserID integer Gets or set the user id
    • EndDate string The end date.
    • StartDate string The start date.
    {
      "Comment": "",
      "EmployeeUserID": 0,
      "EndDate": "2024-05-05T00:00:00+00:00",
      "StartDate": "2024-05-05T00:00:00+00:00"
    }
  • version string The requested API version

Returns

  • [200] Timesheet period 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 period 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": ""
    }