POST api/Subcontracts/{subcontractId}/CostLists/Items
Adds new cost items to a subcontract cost list (for a given type)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| subcontractId | integer |
Required |
Body Parameters
Collection of CostItemCreateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Description | string |
String length: inclusive between 0 and 1000 |
|
| Quantity | decimal number |
Required |
|
| UnitPrice | decimal number |
Required |
|
| CostListTypeId | integer |
None. |
|
| CostListSubTypeId | integer |
None. |
|
| CostItemTypeId | integer |
None. |
|
| CurrencyCode | string |
String length: inclusive between 0 and 3 |
Request Formats
application/json, text/json
Sample:
[
{
"description": "sample string 1",
"quantity": 2.0,
"unitPrice": 3.0,
"costListTypeId": 4,
"costListSubTypeId": 5,
"costItemTypeId": 6,
"currencyCode": "sample string 7"
},
{
"description": "sample string 1",
"quantity": 2.0,
"unitPrice": 3.0,
"costListTypeId": 4,
"costListSubTypeId": 5,
"costItemTypeId": 6,
"currencyCode": "sample string 7"
}
]
text/html
Sample:
[{"description":"sample string 1","quantity":2.0,"unitPrice":3.0,"costListTypeId":4,"costListSubTypeId":5,"costItemTypeId":6,"currencyCode":"sample string 7"},{"description":"sample string 1","quantity":2.0,"unitPrice":3.0,"costListTypeId":4,"costListSubTypeId":5,"costItemTypeId":6,"currencyCode":"sample string 7"}]
application/xml, text/xml
Sample:
<ArrayOfCostItemCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.CostListAgg">
<CostItemCreateDto>
<CostItemTypeId>6</CostItemTypeId>
<CostListSubTypeId>5</CostListSubTypeId>
<CostListTypeId>4</CostListTypeId>
<CurrencyCode>sample string 7</CurrencyCode>
<Description>sample string 1</Description>
<Quantity>2</Quantity>
<UnitPrice>3</UnitPrice>
</CostItemCreateDto>
<CostItemCreateDto>
<CostItemTypeId>6</CostItemTypeId>
<CostListSubTypeId>5</CostListSubTypeId>
<CostListTypeId>4</CostListTypeId>
<CurrencyCode>sample string 7</CurrencyCode>
<Description>sample string 1</Description>
<Quantity>2</Quantity>
<UnitPrice>3</UnitPrice>
</CostItemCreateDto>
</ArrayOfCostItemCreateDto>
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>