POST api/Product/UpdateProduct

Request Information

URI Parameters

None.

Body Parameters

Product
NameDescriptionTypeAdditional information
ProductId

integer

None.

ProductName

string

None.

ProductCode

string

None.

Productdeletedflag

boolean

None.

IsDeliveryFree

integer

None.

SKUCode

string

None.

UPCCode

string

None.

HSNCode

integer

None.

BrandId

integer

None.

Description

string

None.

Specification

string

None.

ProductImage

string

None.

Image2

string

None.

Image3

string

None.

Image4

string

None.

Image5

string

None.

MainCategoryId

integer

None.

ProductCategoryId

integer

None.

ProductSubCategoryId

integer

None.

BuyerLimit

integer

None.

Size

integer

None.

Unit

integer

None.

Color

integer

None.

YoutubeLink

string

None.

Guarantee

string

None.

AverageRating

decimal number

None.

IsActive

boolean

None.

CreatedBy

string

None.

CreatedDate

date

None.

UpdatedBy

string

None.

UpdatedDate

date

None.

Price

Price

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "ProductName": "sample string 2",
  "ProductCode": "sample string 3",
  "Productdeletedflag": true,
  "IsDeliveryFree": 1,
  "SKUCode": "sample string 4",
  "UPCCode": "sample string 5",
  "HSNCode": 1,
  "BrandId": 1,
  "Description": "sample string 6",
  "Specification": "sample string 7",
  "ProductImage": "sample string 8",
  "Image2": "sample string 9",
  "Image3": "sample string 10",
  "Image4": "sample string 11",
  "Image5": "sample string 12",
  "MainCategoryId": 1,
  "ProductCategoryId": 1,
  "ProductSubCategoryId": 1,
  "BuyerLimit": 1,
  "Size": 1,
  "Unit": 1,
  "Color": 1,
  "YoutubeLink": "sample string 13",
  "Guarantee": "sample string 14",
  "AverageRating": 1.0,
  "IsActive": true,
  "CreatedBy": "sample string 15",
  "CreatedDate": "2026-10-06T22:46:55.0199702+05:30",
  "UpdatedBy": "sample string 16",
  "UpdatedDate": "2026-10-06T22:46:55.0199702+05:30",
  "Price": {
    "Id": 1,
    "ProductId": 1,
    "ProductCode": "sample string 2",
    "BasePrice": 1.0,
    "SalePrice": 1.0,
    "WebPrice": 1.0,
    "DiscountPercent": 1.0,
    "DiscountPrice": 1.0,
    "SGSTPercent": 1.0,
    "SGST": 1.0,
    "IGSTPercent": 1.0,
    "IGST": 1.0,
    "OtherTax": 1.0,
    "IsActive": true,
    "CreatedBy": "sample string 3",
    "CreatedDate": "2026-10-06T22:46:55.0199702+05:30",
    "UpdatedBy": "sample string 4",
    "UpdatedDate": "2026-10-06T22:46:55.0199702+05:30"
  }
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models.DbEntities">
  <AverageRating>1</AverageRating>
  <BrandId>1</BrandId>
  <BuyerLimit>1</BuyerLimit>
  <Color>1</Color>
  <CreatedBy>sample string 15</CreatedBy>
  <CreatedDate>2026-10-06T22:46:55.0199702+05:30</CreatedDate>
  <Description>sample string 6</Description>
  <Guarantee>sample string 14</Guarantee>
  <HSNCode>1</HSNCode>
  <Image2>sample string 9</Image2>
  <Image3>sample string 10</Image3>
  <Image4>sample string 11</Image4>
  <Image5>sample string 12</Image5>
  <IsActive>true</IsActive>
  <IsDeliveryFree>1</IsDeliveryFree>
  <MainCategoryId>1</MainCategoryId>
  <Price>
    <BasePrice>1</BasePrice>
    <CreatedBy>sample string 3</CreatedBy>
    <CreatedDate>2026-10-06T22:46:55.0199702+05:30</CreatedDate>
    <DiscountPercent>1</DiscountPercent>
    <DiscountPrice>1</DiscountPrice>
    <IGST>1</IGST>
    <IGSTPercent>1</IGSTPercent>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <OtherTax>1</OtherTax>
    <ProductCode>sample string 2</ProductCode>
    <ProductId>1</ProductId>
    <SGST>1</SGST>
    <SGSTPercent>1</SGSTPercent>
    <SalePrice>1</SalePrice>
    <UpdatedBy>sample string 4</UpdatedBy>
    <UpdatedDate>2026-10-06T22:46:55.0199702+05:30</UpdatedDate>
    <WebPrice>1</WebPrice>
  </Price>
  <ProductCategoryId>1</ProductCategoryId>
  <ProductCode>sample string 3</ProductCode>
  <ProductId>1</ProductId>
  <ProductImage>sample string 8</ProductImage>
  <ProductName>sample string 2</ProductName>
  <ProductSubCategoryId>1</ProductSubCategoryId>
  <Productdeletedflag>true</Productdeletedflag>
  <SKUCode>sample string 4</SKUCode>
  <Size>1</Size>
  <Specification>sample string 7</Specification>
  <UPCCode>sample string 5</UPCCode>
  <Unit>1</Unit>
  <UpdatedBy>sample string 16</UpdatedBy>
  <UpdatedDate>2026-10-06T22:46:55.0199702+05:30</UpdatedDate>
  <YoutubeLink>sample string 13</YoutubeLink>
</Product>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.