PUT api/v1/producto/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductoUpdateRequestDto
NameDescriptionTypeAdditional information
NombreProducto

string

String length: inclusive between 0 and 500

Codigo

string

String length: inclusive between 0 and 50

PrecioLista

decimal number

Range: inclusive between 0 and 1.79769313486232E+308

PrecioCompra

decimal number

Range: inclusive between 0 and 1.79769313486232E+308

PrecioVenta

decimal number

Range: inclusive between 0 and 1.79769313486232E+308

Stock

integer

None.

Pedidos

integer

None.

Vendidas

integer

None.

Separadas

integer

None.

Inventario

integer

None.

StockMinimo

integer

None.

StockMaximo

integer

None.

CodMarca

integer

None.

CodModelo

integer

None.

CodBarras

string

String length: inclusive between 0 and 100

Categoria

string

String length: inclusive between 0 and 200

Request Formats

application/json, text/json

Sample:
{
  "nombreProducto": "sample string 1",
  "codigo": "sample string 2",
  "precioLista": 1.0,
  "precioCompra": 1.0,
  "precioVenta": 1.0,
  "stock": 1,
  "pedidos": 1,
  "vendidas": 1,
  "separadas": 1,
  "inventario": 1,
  "stockMinimo": 1,
  "stockMaximo": 1,
  "codMarca": 1,
  "codModelo": 1,
  "codBarras": "sample string 3",
  "categoria": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProductoUpdateRequestDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.