Back to Department

GET Method Details for GetAll.

Get all departments

Definition

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

Parameters

  • version string The requested API version

Returns

  • [200] A list of departments
    • DepartmentID integer Gets or sets the Department identifier.
    • ID string Gets or sets the identifier.
    • IsActive boolean Gets or sets a value indicating whether this instance is active.
    • ManagerEmployeeID integer Gets or sets the Manager Employee identifier.
    • Name string Gets or sets the name.
    • No string Gets or sets the No.
    • ParentID integer Gets or sets the Parent identifier.
    {
      "DepartmentID": 0,
      "ID": "00000000-0000-0000-0000-000000000000",
      "IsActive": false,
      "ManagerEmployeeID": 0,
      "Name": "",
      "No": "",
      "ParentID": 0
    }
  • [401] Invalid authentication token
  • [500] Request to GetAll 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": ""
    }