POST api/EditProduct

Request Information

URI Parameters

None.

Body Parameters

ProductAddEditRequest
NameDescriptionTypeAdditional information
Reference

string

None.

BarCode

string

None.

Serializable

boolean

None.

ProductGroup

string

None.

ProductSubGroup

string

None.

MeasureTypeId

integer

None.

Brand

string

None.

Model

string

None.

Price

decimal number

None.

IdClient

integer

None.

Client

string

None.

Weight

decimal number

None.

Size

string

None.

IdColor

integer

None.

Volume

decimal number

None.

Id

integer

None.

Name

string

None.

Description

string

None.

IsEnabled

boolean

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "reference": "sample string 1",
  "barCode": "sample string 2",
  "serializable": true,
  "productGroup": "sample string 4",
  "productSubGroup": "sample string 5",
  "measureTypeId": 6,
  "brand": "sample string 7",
  "model": "sample string 8",
  "price": 9.0,
  "idClient": 10,
  "client": "sample string 11",
  "weight": 1.0,
  "size": "sample string 12",
  "idColor": 13,
  "volume": 1.0,
  "id": 14,
  "name": "sample string 15",
  "description": "sample string 16",
  "isEnabled": true,
  "user": "sample string 18",
  "userId": 19,
  "validationKey": "sample string 20"
}

application/xml, text/xml

Sample:
<ProductAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Product">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 18</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">19</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 20</ValidationKey>
  <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 16</Description>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">14</Id>
  <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">true</IsEnabled>
  <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 15</Name>
  <BarCode>sample string 2</BarCode>
  <Brand>sample string 7</Brand>
  <Client>sample string 11</Client>
  <IdClient>10</IdClient>
  <IdColor>13</IdColor>
  <MeasureTypeId>6</MeasureTypeId>
  <Model>sample string 8</Model>
  <Price>9</Price>
  <ProductGroup>sample string 4</ProductGroup>
  <ProductSubGroup>sample string 5</ProductSubGroup>
  <Reference>sample string 1</Reference>
  <Serializable>true</Serializable>
  <Size>sample string 12</Size>
  <Volume>1</Volume>
  <Weight>1</Weight>
</ProductAddEditRequest>

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 'ProductAddEditRequest'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resultCode": 1,
  "resultMessage": "sample string 2",
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">
  <ErrorMessage>sample string 3</ErrorMessage>
  <ResultCode>1</ResultCode>
  <ResultMessage>sample string 2</ResultMessage>
</Response>