PUT api/PriceList/UpdateRootPrices

Dada una lista de número de producto - precio, actualiza la lista raíz

Request Information

URI Parameters

None.

Body Parameters

Lista de número de producto - precio

Collection of ProductPriceViewModel
NameDescriptionTypeAdditional information
ProductCode

string

Required

Price

decimal number

Range: inclusive between 0,01 and 1,79769313486232E+308

Request Formats

application/json, text/json

Sample:
[
  {
    "ProductCode": "sample string 1",
    "Price": 2.1
  },
  {
    "ProductCode": "sample string 1",
    "Price": 2.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductPriceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels.Trading.Pricing">
  <ProductPriceViewModel>
    <Price>2.1</Price>
    <ProductCode>sample string 1</ProductCode>
  </ProductPriceViewModel>
  <ProductPriceViewModel>
    <Price>2.1</Price>
    <ProductCode>sample string 1</ProductCode>
  </ProductPriceViewModel>
</ArrayOfProductPriceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Ok si la actualización es correcta, BadRequest si ocurre un error

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.