PUT api/Subcontracts/{subcontractId}/Timesheets/CommunicateToSubcontractor
Recover sfr
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
TimesheetCommunicateToSubcontractorCommandRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SubcontractId | integer |
None. |
|
| AllSelection | boolean |
None. |
|
| SelectedItems | Collection of integer |
None. |
|
| AllSelectionFilter | TimesheetsFilter |
None. |
Request Formats
application/json, text/json
Sample:
{
"subcontractId": 1,
"allSelection": true,
"selectedItems": [
1,
2
],
"allSelectionFilter": {
"date": [
"2026-05-09T14:07:07.7891364+02:00",
"2026-05-09T14:07:07.7891364+02:00"
],
"nameAndFamilyName": "sample string 2",
"tmsrNumber": "sample string 3",
"proposedTrade": "sample string 4",
"approvedTrade": "sample string 5",
"timesheetCode": "sample string 6",
"timesheetStatusId": 1,
"timesheetDescription": "sample string 7",
"isRevised": true,
"timesheetId": 8,
"timesheetVersionId": 1,
"isPreview": true
}
}
text/html
Sample:
{"subcontractId":1,"allSelection":true,"selectedItems":[1,2],"allSelectionFilter":{"date":["2026-05-09T14:07:07.7891364+02:00","2026-05-09T14:07:07.7891364+02:00"],"nameAndFamilyName":"sample string 2","tmsrNumber":"sample string 3","proposedTrade":"sample string 4","approvedTrade":"sample string 5","timesheetCode":"sample string 6","timesheetStatusId":1,"timesheetDescription":"sample string 7","isRevised":true,"timesheetId":8,"timesheetVersionId":1,"isPreview":true}}
application/xml, text/xml
Sample:
<TimesheetCommunicateToSubcontractorCommandRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.AppServices.SubcontractAgg.CommandHandlers">
<AllSelection>true</AllSelection>
<AllSelectionFilter xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Domain.Aggregates.TimesheetsAgg">
<d2p1:ApprovedTrade>sample string 5</d2p1:ApprovedTrade>
<d2p1:Date xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:dateTime>2026-05-09T14:07:07.7891364+02:00</d3p1:dateTime>
<d3p1:dateTime>2026-05-09T14:07:07.7891364+02:00</d3p1:dateTime>
</d2p1:Date>
<d2p1:IsPreview>true</d2p1:IsPreview>
<d2p1:IsRevised>true</d2p1:IsRevised>
<d2p1:NameAndFamilyName>sample string 2</d2p1:NameAndFamilyName>
<d2p1:ProposedTrade>sample string 4</d2p1:ProposedTrade>
<d2p1:TimesheetCode>sample string 6</d2p1:TimesheetCode>
<d2p1:TimesheetDescription>sample string 7</d2p1:TimesheetDescription>
<d2p1:TimesheetId>8</d2p1:TimesheetId>
<d2p1:TimesheetStatusId>Draft</d2p1:TimesheetStatusId>
<d2p1:TimesheetVersionId>1</d2p1:TimesheetVersionId>
<d2p1:TmsrNumber>sample string 3</d2p1:TmsrNumber>
</AllSelectionFilter>
<SelectedItems xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</SelectedItems>
<SubcontractId>1</SubcontractId>
</TimesheetCommunicateToSubcontractorCommandRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfTimesheetCommunicateToSubcontractorResponseDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | TimesheetCommunicateToSubcontractorResponseDto |
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.