POST api/producto
Request Information
URI Parameters
None.
Body Parameters
RequestProductoServiceName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
codigo | integer |
None. |
|
descripcion | string |
None. |
|
familia | string |
None. |
|
subFamilia | string |
None. |
|
um | string |
None. |
|
lote | string |
None. |
|
cantidadPzaMKg | integer |
None. |
|
Imagen | string |
None. |
|
PesoKgXUm | decimal number |
None. |
|
observaciones | string |
None. |
|
indTrasladoFisico | boolean |
None. |
|
idMaquina | integer |
None. |
|
idDefecto | integer |
None. |
|
idDetalle | integer |
None. |
|
idArea | integer |
None. |
|
idTipoProduccion | integer |
None. |
|
idLugar | integer |
None. |
|
idEstatus | integer |
None. |
|
idDestino | integer |
None. |
|
idHallazgo | integer |
None. |
|
destino | string |
None. |
|
ImagenNombre | string |
None. |
|
ImagenMensaje | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "codigo": 2, "descripcion": "sample string 3", "familia": "sample string 4", "subFamilia": "sample string 5", "um": "sample string 6", "lote": "sample string 7", "cantidadPzaMKg": 1, "Imagen": "sample string 8", "PesoKgXUm": 1.0, "observaciones": "sample string 9", "indTrasladoFisico": true, "idMaquina": 11, "idDefecto": 12, "idDetalle": 13, "idArea": 14, "idTipoProduccion": 15, "idLugar": 16, "idEstatus": 17, "idDestino": 18, "idHallazgo": 19, "destino": "sample string 20", "ImagenNombre": "sample string 21", "ImagenMensaje": "sample string 22" }
application/xml, text/xml
Sample:
<RequestProductoService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICalidadHD.Models"> <CantidadPzaMKg>1</CantidadPzaMKg> <Codigo>2</Codigo> <Descripcion>sample string 3</Descripcion> <Destino>sample string 20</Destino> <Familia>sample string 4</Familia> <Id>1</Id> <IdArea>14</IdArea> <IdDefecto>12</IdDefecto> <IdDestino>18</IdDestino> <IdDetalle>13</IdDetalle> <IdEstatus>17</IdEstatus> <IdHallazgo>19</IdHallazgo> <IdLugar>16</IdLugar> <IdMaquina>11</IdMaquina> <IdTipoProduccion>15</IdTipoProduccion> <Imagen>sample string 8</Imagen> <ImagenMensaje>sample string 22</ImagenMensaje> <ImagenNombre>sample string 21</ImagenNombre> <IndTrasladoFisico>true</IndTrasladoFisico> <Lote>sample string 7</Lote> <Observaciones>sample string 9</Observaciones> <PesoKgXUm>1</PesoKgXUm> <SubFamilia>sample string 5</SubFamilia> <Um>sample string 6</Um> </RequestProductoService>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |