POST api/Subcontracts/{subcontractId}/Timesheets/{timesheetId}/Versions/{timesheetVersionId}/TimeSheetLines/Query
Get time sheets
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
|
| timesheetId | integer |
Required |
|
| timesheetVersionId | integer |
Required |
Body Parameters
TimesheetVersionLinesFilter| Name | Description | Type | Additional information |
|---|---|---|---|
| Date | Collection of date |
None. |
|
| NameAndFamilyName | string |
None. |
|
| IsRevised | boolean |
None. |
|
| TradeDesc | string |
None. |
|
| HourTypeDescription | string |
None. |
|
| TotalHours | Collection of integer |
None. |
|
| Page | Page |
None. |
|
| Orders | Collection of Order |
None. |
Request Formats
application/json, text/json
Sample:
{
"date": [
"2026-12-04T13:05:23.4542545+01:00",
"2026-12-04T13:05:23.4542545+01:00"
],
"nameAndFamilyName": "sample string 6",
"isRevised": true,
"tradeDesc": "sample string 7",
"hourTypeDescription": "sample string 8",
"totalHours": [
1,
1
],
"page": {
"number": 1,
"size": 2,
"skip": 0
},
"orders": [
{
"name": "sample string 1",
"descending": true
},
{
"name": "sample string 1",
"descending": true
}
]
}
text/html
Sample:
{"date":["2026-12-04T13:05:23.4542545+01:00","2026-12-04T13:05:23.4542545+01:00"],"nameAndFamilyName":"sample string 6","isRevised":true,"tradeDesc":"sample string 7","hourTypeDescription":"sample string 8","totalHours":[1,1],"page":{"number":1,"size":2,"skip":0},"orders":[{"name":"sample string 1","descending":true},{"name":"sample string 1","descending":true}]}
application/xml, text/xml
Sample:
<TimesheetVersionLinesFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.TimesheetsAgg">
<Orders xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
<d2p1:Order>
<d2p1:Descending>true</d2p1:Descending>
<d2p1:Name>sample string 1</d2p1:Name>
</d2p1:Order>
<d2p1:Order>
<d2p1:Descending>true</d2p1:Descending>
<d2p1:Name>sample string 1</d2p1:Name>
</d2p1:Order>
</Orders>
<Page xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.SortAndPage.Entities" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.Application.Base.Dtos">
<d2p1:Number>1</d2p1:Number>
<d2p1:Size>2</d2p1:Size>
</Page>
<Date xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:dateTime>2026-12-04T13:05:23.4542545+01:00</d2p1:dateTime>
<d2p1:dateTime>2026-12-04T13:05:23.4542545+01:00</d2p1:dateTime>
</Date>
<HourTypeDescription>sample string 8</HourTypeDescription>
<IsRevised>true</IsRevised>
<NameAndFamilyName>sample string 6</NameAndFamilyName>
<TotalHours xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:int>1</d2p1:int>
<d2p1:int>1</d2p1:int>
</TotalHours>
<TradeDesc>sample string 7</TradeDesc>
</TimesheetVersionLinesFilter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIPagedListOfTimesheetLineDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | IPagedListOfTimesheetLineDto |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
|
| Errors | Collection of CustomError |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.