POST api/clock/groupedClocksByPerson
Group clocks by person
Request Information
URI Parameters
None.
Body Parameters
GetGroupedClocksBinderName | Description | Type | Additional information |
---|---|---|---|
PersonIds | Collection of integer |
None. |
|
FromDate | date |
None. |
|
ToDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "PersonIds": [ 1, 2 ], "FromDate": "2024-12-21 15:28:44", "ToDate": "2024-12-21 15:28:44" }
application/xml, text/xml
Sample:
<GetGroupedClocksBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <FromDate>2024-12-21T19:28:44.7414858-08:00</FromDate> <PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </PersonIds> <ToDate>2024-12-21T19:28:44.7414858-08:00</ToDate> </GetGroupedClocksBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Group clocks by person
API_Data_ListOfPersonClockPairsName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of PersonClockPairs |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "PersonId": 1, "Days": [ { "PersonId": 1, "ItemDate": "2024-12-21 19:28:44", "ClockOn": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "LastModifiedTime": "2024-12-21 15:28:44" }, { "PersonId": 1, "ItemDate": "2024-12-21 19:28:44", "ClockOn": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "LastModifiedTime": "2024-12-21 15:28:44" } ] }, { "PersonId": 1, "Days": [ { "PersonId": 1, "ItemDate": "2024-12-21 19:28:44", "ClockOn": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "LastModifiedTime": "2024-12-21 15:28:44" }, { "PersonId": 1, "ItemDate": "2024-12-21 19:28:44", "ClockOn": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "ClockOff": { "When": "2024-12-21 15:28:44", "IsModified": true, "LastModifiedBy": 3, "IsAutoGenerated": false }, "LastModifiedTime": "2024-12-21 15:28:44" } ] } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfPersonClockPairs 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.Binding"> <d2p1:PersonClockPairs> <d2p1:Days> <d2p1:ClockPair> <d2p1:ClockOff> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOff> <d2p1:ClockOn> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOn> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:ItemDate>2024-12-21T19:28:44.7414858-08:00</d2p1:ItemDate> <d2p1:LastModifiedTime>2024-12-21T19:28:44.7414858-08:00</d2p1:LastModifiedTime> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:ClockPair> <d2p1:ClockPair> <d2p1:ClockOff> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOff> <d2p1:ClockOn> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOn> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:ItemDate>2024-12-21T19:28:44.7414858-08:00</d2p1:ItemDate> <d2p1:LastModifiedTime>2024-12-21T19:28:44.7414858-08:00</d2p1:LastModifiedTime> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:ClockPair> </d2p1:Days> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:PersonClockPairs> <d2p1:PersonClockPairs> <d2p1:Days> <d2p1:ClockPair> <d2p1:ClockOff> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOff> <d2p1:ClockOn> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOn> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:ItemDate>2024-12-21T19:28:44.7414858-08:00</d2p1:ItemDate> <d2p1:LastModifiedTime>2024-12-21T19:28:44.7414858-08:00</d2p1:LastModifiedTime> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:ClockPair> <d2p1:ClockPair> <d2p1:ClockOff> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOff> <d2p1:ClockOn> <d2p1:IsModified>true</d2p1:IsModified> <d2p1:LastModifiedBy>3</d2p1:LastModifiedBy> <d2p1:When>2024-12-21T19:28:44.7414858-08:00</d2p1:When> </d2p1:ClockOn> <d2p1:IfOnline>3</d2p1:IfOnline> <d2p1:ItemDate>2024-12-21T19:28:44.7414858-08:00</d2p1:ItemDate> <d2p1:LastModifiedTime>2024-12-21T19:28:44.7414858-08:00</d2p1:LastModifiedTime> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:ClockPair> </d2p1:Days> <d2p1:PersonId>1</d2p1:PersonId> </d2p1:PersonClockPairs> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfPersonClockPairs>