POST api/Services/AddUpdatedProduct

Request Information

URI Parameters

None.

Body Parameters

ProductEntity
NameDescriptionTypeAdditional information
ProductId

integer

None.

ProductName

string

None.

ProductDescription

string

None.

ProductCategoryId

integer

None.

ProductSubCategoryId1

integer

None.

ProductSubCategoryId2

integer

None.

ProductSubCategoryId3

integer

None.

ProductCategoryName

string

None.

ProductSubCategoryName1

string

None.

ProductSubCategoryName2

string

None.

ProductSubCategoryName3

string

None.

ProductImage1

string

None.

ProductImage2

string

None.

ProductImage3

string

None.

ProductImage4

string

None.

ProductAddedBy

integer

None.

IsActive

boolean

None.

StoreId

integer

None.

CreatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "ProductName": "sample string 2",
  "ProductDescription": "sample string 3",
  "ProductCategoryId": 4,
  "ProductSubCategoryId1": 5,
  "ProductSubCategoryId2": 6,
  "ProductSubCategoryId3": 7,
  "ProductCategoryName": "sample string 8",
  "ProductSubCategoryName1": "sample string 9",
  "ProductSubCategoryName2": "sample string 10",
  "ProductSubCategoryName3": "sample string 11",
  "ProductImage1": "sample string 12",
  "ProductImage2": "sample string 13",
  "ProductImage3": "sample string 14",
  "ProductImage4": "sample string 15",
  "ProductAddedBy": 16,
  "IsActive": true,
  "StoreId": 18,
  "CreatedBy": 19
}

text/html, multipart/form-data

Sample:
{"ProductId":1,"ProductName":"sample string 2","ProductDescription":"sample string 3","ProductCategoryId":4,"ProductSubCategoryId1":5,"ProductSubCategoryId2":6,"ProductSubCategoryId3":7,"ProductCategoryName":"sample string 8","ProductSubCategoryName1":"sample string 9","ProductSubCategoryName2":"sample string 10","ProductSubCategoryName3":"sample string 11","ProductImage1":"sample string 12","ProductImage2":"sample string 13","ProductImage3":"sample string 14","ProductImage4":"sample string 15","ProductAddedBy":16,"IsActive":true,"StoreId":18,"CreatedBy":19}

application/xml, text/xml

Sample:
<ProductEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity">
  <CreatedBy>19</CreatedBy>
  <IsActive>true</IsActive>
  <ProductAddedBy>16</ProductAddedBy>
  <ProductCategoryId>4</ProductCategoryId>
  <ProductCategoryName>sample string 8</ProductCategoryName>
  <ProductDescription>sample string 3</ProductDescription>
  <ProductId>1</ProductId>
  <ProductImage1>sample string 12</ProductImage1>
  <ProductImage2>sample string 13</ProductImage2>
  <ProductImage3>sample string 14</ProductImage3>
  <ProductImage4>sample string 15</ProductImage4>
  <ProductName>sample string 2</ProductName>
  <ProductSubCategoryId1>5</ProductSubCategoryId1>
  <ProductSubCategoryId2>6</ProductSubCategoryId2>
  <ProductSubCategoryId3>7</ProductSubCategoryId3>
  <ProductSubCategoryName1>sample string 9</ProductSubCategoryName1>
  <ProductSubCategoryName2>sample string 10</ProductSubCategoryName2>
  <ProductSubCategoryName3>sample string 11</ProductSubCategoryName3>
  <StoreId>18</StoreId>
</ProductEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponce
NameDescriptionTypeAdditional information
Status

string

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Data": {}
}

text/html, multipart/form-data

Sample:
{"Status":"sample string 1","Message":"sample string 2","Data":{}}

application/xml, text/xml

Sample:
<APIResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Controllers">
  <Data />
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</APIResponce>