PUT api/Subcontracts/{subcontractId}
Updates a subcontract
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
SubcontractUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
Required String length: inclusive between 0 and 60 |
|
| Description | string |
String length: inclusive between 0 and 2000 |
|
| CurrencyCode | string |
Required String length: inclusive between 0 and 15 |
|
| SubcontractorCode | string |
String length: inclusive between 0 and 10 |
|
| Pep | string |
String length: inclusive between 0 and 72 |
|
| ItemGroupCode | string |
None. |
|
| DisciplineId | string |
None. |
|
| PendingClientApproval | boolean |
None. |
|
| Language | integer |
None. |
|
| DeliveryPlace | string |
None. |
|
| MarkupOnChargebacks | decimal number |
None. |
|
| PaymentTermId | PaymentTermId |
None. |
|
| CountryForArbitration | string |
None. |
|
| CityForArbitration | string |
None. |
|
| CountryBankGuaranteesReg | string |
None. |
|
| WarrantyPeriod | integer |
None. |
|
| ManufacturingPlace | string |
None. |
|
| InspectionPlace | string |
None. |
|
| KeyPersonMinimumExperience | integer |
None. |
|
| ProvConstrucAllRiskInsrnc | integer |
None. |
|
| InsuranceDeductibleAmount | decimal number |
None. |
|
| InsDeducAmontComsnPerfrmnc | decimal number |
None. |
|
| MaxRetention | decimal number |
Range: inclusive between 0 and 100 |
|
| RetentionPercentage | decimal number |
Range: inclusive between 0 and 100 |
|
| AdvPaymentDeductionRate | decimal number |
Range: inclusive between 0 and 100 |
|
| MaxLdPercentage | decimal number |
Range: inclusive between 0 and 100 |
|
| ContractorName | string |
None. |
|
| ContractorEmail | string |
None. |
|
| CommercialTerm | string |
None. |
|
| RetentionReleaseDate | date |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| ForecastStartDate | date |
None. |
|
| ForecastEndDate | date |
None. |
|
| ForecastAmount | decimal number |
None. |
|
| RfiCode | string |
String length: inclusive between 0 and 10 |
|
| RfpCode | string |
None. |
|
| ToChargeCostTypeId | CostChargeToTypeId |
None. |
|
| CrNconformity | string |
None. |
|
| DeclaredAsBackchargeableOn | date |
None. |
|
| ByProgressPercentage | decimal number |
None. |
|
| ByPrgPercContractClause | string |
None. |
|
| Tmsr | Collection of TimeAndMaterialSrBasicInfoDto |
None. |
|
| TmUnitRates | Collection of string |
None. |
|
| PdaAmount | decimal number |
None. |
|
| PdaDate | date |
None. |
|
| PdaRevision | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 2",
"description": "sample string 3",
"currencyCode": "sample string 4",
"subcontractorCode": "sample string 5",
"pep": "sample string 6",
"itemGroupCode": "sample string 7",
"disciplineId": "sample string 8",
"pendingClientApproval": true,
"language": 1,
"deliveryPlace": "sample string 9",
"markupOnChargebacks": 1.0,
"paymentTermId": 1,
"countryForArbitration": "sample string 10",
"cityForArbitration": "sample string 11",
"countryBankGuaranteesReg": "sample string 12",
"warrantyPeriod": 1,
"manufacturingPlace": "sample string 13",
"inspectionPlace": "sample string 14",
"keyPersonMinimumExperience": 1,
"provConstrucAllRiskInsrnc": 1,
"insuranceDeductibleAmount": 1.0,
"insDeducAmontComsnPerfrmnc": 1.0,
"maxRetention": 1.0,
"retentionPercentage": 1.0,
"advPaymentDeductionRate": 1.0,
"maxLdPercentage": 1.0,
"contractorName": "sample string 15",
"contractorEmail": "sample string 16",
"commercialTerm": "sample string 17",
"retentionReleaseDate": "2026-05-09T14:05:34.8370312+02:00",
"startDate": "2026-05-09T14:05:34.8370312+02:00",
"endDate": "2026-05-09T14:05:34.8370312+02:00",
"forecastStartDate": "2026-05-09T14:05:34.8370312+02:00",
"forecastEndDate": "2026-05-09T14:05:34.8370312+02:00",
"forecastAmount": 1.0,
"rfiCode": "sample string 18",
"rfpCode": "sample string 19",
"toChargeCostTypeId": 1,
"crNconformity": "sample string 20",
"declaredAsBackchargeableOn": "2026-05-09T14:05:34.8370312+02:00",
"byProgressPercentage": 1.0,
"byPrgPercContractClause": "sample string 21",
"tmsr": [
{
"id": 1,
"tmsrNumber": "sample string 2",
"issuedDate": "2026-05-09T14:05:34.8370312+02:00",
"workitemSfr": "sample string 4",
"supervisorLevel": 5,
"expectedCost": 1.0,
"isClosed": true,
"currencyCode": "sample string 7"
},
{
"id": 1,
"tmsrNumber": "sample string 2",
"issuedDate": "2026-05-09T14:05:34.8370312+02:00",
"workitemSfr": "sample string 4",
"supervisorLevel": 5,
"expectedCost": 1.0,
"isClosed": true,
"currencyCode": "sample string 7"
}
],
"tmUnitRates": [
"sample string 1",
"sample string 2"
],
"pdaAmount": 1.0,
"pdaDate": "2026-05-09T14:05:34.8370312+02:00",
"pdaRevision": "sample string 22"
}
text/html
Sample:
{"name":"sample string 2","description":"sample string 3","currencyCode":"sample string 4","subcontractorCode":"sample string 5","pep":"sample string 6","itemGroupCode":"sample string 7","disciplineId":"sample string 8","pendingClientApproval":true,"language":1,"deliveryPlace":"sample string 9","markupOnChargebacks":1.0,"paymentTermId":1,"countryForArbitration":"sample string 10","cityForArbitration":"sample string 11","countryBankGuaranteesReg":"sample string 12","warrantyPeriod":1,"manufacturingPlace":"sample string 13","inspectionPlace":"sample string 14","keyPersonMinimumExperience":1,"provConstrucAllRiskInsrnc":1,"insuranceDeductibleAmount":1.0,"insDeducAmontComsnPerfrmnc":1.0,"maxRetention":1.0,"retentionPercentage":1.0,"advPaymentDeductionRate":1.0,"maxLdPercentage":1.0,"contractorName":"sample string 15","contractorEmail":"sample string 16","commercialTerm":"sample string 17","retentionReleaseDate":"2026-05-09T14:05:34.8370312+02:00","startDate":"2026-05-09T14:05:34.8370312+02:00","endDate":"2026-05-09T14:05:34.8370312+02:00","forecastStartDate":"2026-05-09T14:05:34.8370312+02:00","forecastEndDate":"2026-05-09T14:05:34.8370312+02:00","forecastAmount":1.0,"rfiCode":"sample string 18","rfpCode":"sample string 19","toChargeCostTypeId":1,"crNconformity":"sample string 20","declaredAsBackchargeableOn":"2026-05-09T14:05:34.8370312+02:00","byProgressPercentage":1.0,"byPrgPercContractClause":"sample string 21","tmsr":[{"id":1,"tmsrNumber":"sample string 2","issuedDate":"2026-05-09T14:05:34.8370312+02:00","workitemSfr":"sample string 4","supervisorLevel":5,"expectedCost":1.0,"isClosed":true,"currencyCode":"sample string 7"},{"id":1,"tmsrNumber":"sample string 2","issuedDate":"2026-05-09T14:05:34.8370312+02:00","workitemSfr":"sample string 4","supervisorLevel":5,"expectedCost":1.0,"isClosed":true,"currencyCode":"sample string 7"}],"tmUnitRates":["sample string 1","sample string 2"],"pdaAmount":1.0,"pdaDate":"2026-05-09T14:05:34.8370312+02:00","pdaRevision":"sample string 22"}
application/xml, text/xml
Sample:
<SubcontractUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg">
<AdvPaymentDeductionRate>1</AdvPaymentDeductionRate>
<ByPrgPercContractClause>sample string 21</ByPrgPercContractClause>
<ByProgressPercentage>1</ByProgressPercentage>
<CityForArbitration>sample string 11</CityForArbitration>
<CommercialTerm>sample string 17</CommercialTerm>
<ContractorEmail>sample string 16</ContractorEmail>
<ContractorName>sample string 15</ContractorName>
<CountryBankGuaranteesReg>sample string 12</CountryBankGuaranteesReg>
<CountryForArbitration>sample string 10</CountryForArbitration>
<CrNconformity>sample string 20</CrNconformity>
<CurrencyCode>sample string 4</CurrencyCode>
<DeclaredAsBackchargeableOn>2026-05-09T14:05:34.8370312+02:00</DeclaredAsBackchargeableOn>
<DeliveryPlace>sample string 9</DeliveryPlace>
<Description>sample string 3</Description>
<DisciplineId>sample string 8</DisciplineId>
<EndDate>2026-05-09T14:05:34.8370312+02:00</EndDate>
<ForecastAmount>1</ForecastAmount>
<ForecastEndDate>2026-05-09T14:05:34.8370312+02:00</ForecastEndDate>
<ForecastStartDate>2026-05-09T14:05:34.8370312+02:00</ForecastStartDate>
<InsDeducAmontComsnPerfrmnc>1</InsDeducAmontComsnPerfrmnc>
<InspectionPlace>sample string 14</InspectionPlace>
<InsuranceDeductibleAmount>1</InsuranceDeductibleAmount>
<ItemGroupCode>sample string 7</ItemGroupCode>
<KeyPersonMinimumExperience>1</KeyPersonMinimumExperience>
<Language>1</Language>
<ManufacturingPlace>sample string 13</ManufacturingPlace>
<MarkupOnChargebacks>1</MarkupOnChargebacks>
<MaxLdPercentage>1</MaxLdPercentage>
<MaxRetention>1</MaxRetention>
<Name>sample string 2</Name>
<PaymentTermId>Days1</PaymentTermId>
<PdaAmount>1</PdaAmount>
<PdaDate>2026-05-09T14:05:34.8370312+02:00</PdaDate>
<PdaRevision>sample string 22</PdaRevision>
<PendingClientApproval>true</PendingClientApproval>
<Pep>sample string 6</Pep>
<ProvConstrucAllRiskInsrnc>1</ProvConstrucAllRiskInsrnc>
<RetentionPercentage>1</RetentionPercentage>
<RetentionReleaseDate>2026-05-09T14:05:34.8370312+02:00</RetentionReleaseDate>
<RfiCode>sample string 18</RfiCode>
<RfpCode>sample string 19</RfpCode>
<StartDate>2026-05-09T14:05:34.8370312+02:00</StartDate>
<SubcontractorCode>sample string 5</SubcontractorCode>
<TmUnitRates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</TmUnitRates>
<Tmsr xmlns:d2p1="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.TimeAndMaterialSrAgg">
<d2p1:TimeAndMaterialSrBasicInfoDto>
<d2p1:CurrencyCode>sample string 7</d2p1:CurrencyCode>
<d2p1:ExpectedCost>1</d2p1:ExpectedCost>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsClosed>true</d2p1:IsClosed>
<d2p1:IssuedDate>2026-05-09T14:05:34.8370312+02:00</d2p1:IssuedDate>
<d2p1:SupervisorLevel>5</d2p1:SupervisorLevel>
<d2p1:TmsrNumber>sample string 2</d2p1:TmsrNumber>
<d2p1:WorkitemSfr>sample string 4</d2p1:WorkitemSfr>
</d2p1:TimeAndMaterialSrBasicInfoDto>
<d2p1:TimeAndMaterialSrBasicInfoDto>
<d2p1:CurrencyCode>sample string 7</d2p1:CurrencyCode>
<d2p1:ExpectedCost>1</d2p1:ExpectedCost>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsClosed>true</d2p1:IsClosed>
<d2p1:IssuedDate>2026-05-09T14:05:34.8370312+02:00</d2p1:IssuedDate>
<d2p1:SupervisorLevel>5</d2p1:SupervisorLevel>
<d2p1:TmsrNumber>sample string 2</d2p1:TmsrNumber>
<d2p1:WorkitemSfr>sample string 4</d2p1:WorkitemSfr>
</d2p1:TimeAndMaterialSrBasicInfoDto>
</Tmsr>
<ToChargeCostTypeId>BudgetTR</ToChargeCostTypeId>
<WarrantyPeriod>1</WarrantyPeriod>
</SubcontractUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>