POST api/Productos/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductosData
NameDescriptionTypeAdditional information
id

integer

None.

producto

string

None.

precio_por_pieza

decimal number

None.

precio_por_kilo

decimal number

None.

activo

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "producto": "sample string 2",
  "precio_por_pieza": 3.0,
  "precio_por_kilo": 1.0,
  "activo": true
}

text/html

Sample:
{"id":1,"producto":"sample string 2","precio_por_pieza":3.0,"precio_por_kilo":1.0,"activo":true}

application/xml, text/xml

Sample:
<ProductosData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sysserver.Areas.Catalogos.Productos">
  <activo>true</activo>
  <id>1</id>
  <precio_por_kilo>1</precio_por_kilo>
  <precio_por_pieza>3</precio_por_pieza>
  <producto>sample string 2</producto>
</ProductosData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.