PUT api/PriceList/Put/{id}

Actualiza la lista de precios con identificador 'id' con los datos recibidos en el modelo.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Identificador de la lista de precios a actualizar

string

Required

Body Parameters

Datos de la lista de precios a actualizar

PriceListViewModel
NameDescriptionTypeAdditional information
Name

string

Required

IsRoot

boolean

None.

ProjectedChange

decimal number

None.

DueDate

date

None.

ApplicationDate

date

Required

IsPromotion

boolean

None.

IsSamePriceWithCut

boolean

None.

FatherId

string

None.

Formula

string

Required

CurrencyId

string

Required

UpdateType

integer

Range: inclusive between 1 and 2

Prices

Collection of PriceListItemViewModel

Required

State

PriceListStateViewModel

None.

FilterOptions

ODataQueryOptionsOfPriceListItem

None.

SearchManualPrices

Collection of SearchManualPrice

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "IsRoot": true,
  "ProjectedChange": 3.1,
  "DueDate": "2026-11-10T16:54:18.1631418-03:00",
  "ApplicationDate": "2026-11-10T16:54:18.1631418-03:00",
  "IsPromotion": true,
  "IsSamePriceWithCut": true,
  "FatherId": "sample string 7",
  "Formula": "sample string 8",
  "CurrencyId": "sample string 9",
  "UpdateType": 10,
  "Prices": [
    {
      "TradableItemId": "sample string 1",
      "Price": 2.1,
      "IsApproved": true,
      "IsManual": true,
      "IsSelected": true
    },
    {
      "TradableItemId": "sample string 1",
      "Price": 2.1,
      "IsApproved": true,
      "IsManual": true,
      "IsSelected": true
    }
  ],
  "State": {
    "IsIncludeAll": true,
    "IsDeleteAll": true
  },
  "FilterOptions": null,
  "SearchManualPrices": [
    {
      "Search": "sample string 1",
      "Price": 1.1,
      "IncludeFatherPrices": true
    },
    {
      "Search": "sample string 1",
      "Price": 1.1,
      "IncludeFatherPrices": true
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

De ser exitosa la actualización retorna 200. De lo contrario retorna 400

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.