PUT api/productos/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductoSaveDto
NameDescriptionTypeAdditional information
Nombre

string

None.

Precio

decimal number

None.

Stock

integer

None.

Activo

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Nombre": "sample string 1",
  "Precio": 2.0,
  "Stock": 3,
  "Activo": true
}

application/xml, text/xml

Sample:
<ProductoSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiDemo.Models">
  <Activo>true</Activo>
  <Nombre>sample string 1</Nombre>
  <Precio>2</Precio>
  <Stock>3</Stock>
</ProductoSaveDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.