PUT api/Subcontracts/{subcontractId}/CostLists/Versions/{costListVersionId}/SectionAllocations
Update cost list section allocations
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
|
| costListVersionId | integer |
Required |
Body Parameters
Collection of CostSectionAllocationItemDto| Name | Description | Type | Additional information |
|---|---|---|---|
| SectionId | integer |
None. |
|
| Amount | decimal number |
None. |
|
| DistributionPerc | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"sectionId": 1,
"amount": 2.0,
"distributionPerc": 1.0
},
{
"sectionId": 1,
"amount": 2.0,
"distributionPerc": 1.0
}
]
text/html
Sample:
[{"sectionId":1,"amount":2.0,"distributionPerc":1.0},{"sectionId":1,"amount":2.0,"distributionPerc":1.0}]
application/xml, text/xml
Sample:
<ArrayOfCostSectionAllocationItemDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.CostListAgg">
<CostSectionAllocationItemDto>
<Amount>2</Amount>
<DistributionPerc>1</DistributionPerc>
<SectionId>1</SectionId>
</CostSectionAllocationItemDto>
<CostSectionAllocationItemDto>
<Amount>2</Amount>
<DistributionPerc>1</DistributionPerc>
<SectionId>1</SectionId>
</CostSectionAllocationItemDto>
</ArrayOfCostSectionAllocationItemDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfIEnumerableOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of boolean |
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.