PUT api/Subcontracts/{subcontractId}/CostLists/Items
Updates a cost item from a subcontract cost list
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
Collection of CostItemUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Description | string |
String length: inclusive between 0 and 1000 |
|
| Quantity | decimal number |
Required |
|
| UnitPrice | decimal number |
Required |
|
| CostListTypeId | CostListTypeId |
Required |
|
| CostListSubTypeId | CostItemTypeId |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"id": 1,
"description": "sample string 2",
"quantity": 3.0,
"unitPrice": 4.0,
"costListTypeId": 0,
"costListSubTypeId": 0
},
{
"id": 1,
"description": "sample string 2",
"quantity": 3.0,
"unitPrice": 4.0,
"costListTypeId": 0,
"costListSubTypeId": 0
}
]
text/html
Sample:
[{"id":1,"description":"sample string 2","quantity":3.0,"unitPrice":4.0,"costListTypeId":0,"costListSubTypeId":0},{"id":1,"description":"sample string 2","quantity":3.0,"unitPrice":4.0,"costListTypeId":0,"costListSubTypeId":0}]
application/xml, text/xml
Sample:
<ArrayOfCostItemUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.CostListAgg">
<CostItemUpdateDto>
<CostListSubTypeId>Default</CostListSubTypeId>
<CostListTypeId>Default</CostListTypeId>
<Description>sample string 2</Description>
<Id>1</Id>
<Quantity>3</Quantity>
<UnitPrice>4</UnitPrice>
</CostItemUpdateDto>
<CostItemUpdateDto>
<CostListSubTypeId>Default</CostListSubTypeId>
<CostListTypeId>Default</CostListTypeId>
<Description>sample string 2</Description>
<Id>1</Id>
<Quantity>3</Quantity>
<UnitPrice>4</UnitPrice>
</CostItemUpdateDto>
</ArrayOfCostItemUpdateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiDataResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | 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.