POST api/employee/timeSpent
Get employee's time spent of a specified date
Request Information
URI Parameters
None.
Body Parameters
GetTimeSpentBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| Day | date |
None. |
|
| PersonIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Day": "2025-12-09 06:18:50",
"PersonIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<GetTimeSpentBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
<Day>2025-12-09T10:18:50.1139508-08:00</Day>
<PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</PersonIds>
</GetTimeSpentBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get employee's time spent of a specified date
API_Data_IEnumerableOfEmployeeTimeSpent| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | Collection of EmployeeTimeSpent |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": [
{
"PersonId": 1,
"TimeSpent": "0.0h"
},
{
"PersonId": 1,
"TimeSpent": "0.0h"
}
]
}
application/xml, text/xml
Sample:
<API_Data_ArrayOfEmployeeTimeSpent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
<d2p1:EmployeeTimeSpent>
<d2p1:PersonId>1</d2p1:PersonId>
<d2p1:TimeSpentInt>2</d2p1:TimeSpentInt>
</d2p1:EmployeeTimeSpent>
<d2p1:EmployeeTimeSpent>
<d2p1:PersonId>1</d2p1:PersonId>
<d2p1:TimeSpentInt>2</d2p1:TimeSpentInt>
</d2p1:EmployeeTimeSpent>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_ArrayOfEmployeeTimeSpent>