PUT api/Subcontracts/{subcontractId}/PriceList/UnitPriceItem/{unitPriceItemId}

Update unit price item

Request Information

URI Parameters

NameDescriptionTypeAdditional information
unitPriceItemId

integer

Required

subcontractId

integer

Required

Body Parameters

PriceItemCreateOrUpdateDto
NameDescriptionTypeAdditional information
SectionId

integer

None.

CommodityCode

string

Required

Quantity

decimal number

None.

SupplyPrice

decimal number

None.

ErectionPrice

decimal number

None.

Remarks

string

None.

BothPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "sectionId": 1,
  "commodityCode": "sample string 2",
  "quantity": 1.0,
  "supplyPrice": 1.0,
  "erectionPrice": 1.0,
  "remarks": "sample string 3",
  "bothPrice": 2.0
}

text/html

Sample:
{"sectionId":1,"commodityCode":"sample string 2","quantity":1.0,"supplyPrice":1.0,"erectionPrice":1.0,"remarks":"sample string 3","bothPrice":2.0}

application/xml, text/xml

Sample:
<PriceItemCreateOrUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.PriceListAgg">
  <CommodityCode>sample string 2</CommodityCode>
  <ErectionPrice>1</ErectionPrice>
  <Quantity>1</Quantity>
  <Remarks>sample string 3</Remarks>
  <SectionId>1</SectionId>
  <SupplyPrice>1</SupplyPrice>
</PriceItemCreateOrUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfBoolean
NameDescriptionTypeAdditional 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.