POST api/Product/AddorUpdateProductAttribute

Request Information

URI Parameters

None.

Body Parameters

ProductAttributeEntities
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

ColorId

integer

None.

Size

integer

None.

WeightageId

integer

None.

Tags

string

None.

RegularPrice

decimal number

None.

SalePrice

decimal number

None.

DiscountPerc

decimal number

None.

DiscountPrice

decimal number

None.

CreatedOn

date

None.

CreatedBy

integer

None.

UpdatedOn

date

None.

UpdatedBy

integer

None.

MaximumOrderQty

integer

None.

MinimumStockQty

integer

None.

NewPrice

decimal number

None.

OldPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 2,
  "ColorId": 3,
  "Size": 4,
  "WeightageId": 5,
  "Tags": "sample string 6",
  "RegularPrice": 7.0,
  "SalePrice": 8.0,
  "DiscountPerc": 9.0,
  "DiscountPrice": 10.0,
  "CreatedOn": "2021-09-26T22:10:47.2877456+05:30",
  "CreatedBy": 12,
  "UpdatedOn": "2021-09-26T22:10:47.2877456+05:30",
  "UpdatedBy": 14,
  "MaximumOrderQty": 15,
  "MinimumStockQty": 16,
  "NewPrice": 17.0,
  "OldPrice": 18.0
}

text/html

Sample:
{"Id":1,"ProductId":2,"ColorId":3,"Size":4,"WeightageId":5,"Tags":"sample string 6","RegularPrice":7.0,"SalePrice":8.0,"DiscountPerc":9.0,"DiscountPrice":10.0,"CreatedOn":"2021-09-26T22:10:47.2877456+05:30","CreatedBy":12,"UpdatedOn":"2021-09-26T22:10:47.2877456+05:30","UpdatedBy":14,"MaximumOrderQty":15,"MinimumStockQty":16,"NewPrice":17.0,"OldPrice":18.0}

application/xml, text/xml

Sample:
<ProductAttributeEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.Product">
  <ColorId>3</ColorId>
  <CreatedBy>12</CreatedBy>
  <CreatedOn>2021-09-26T22:10:47.2877456+05:30</CreatedOn>
  <DiscountPerc>9</DiscountPerc>
  <DiscountPrice>10</DiscountPrice>
  <Id>1</Id>
  <MaximumOrderQty>15</MaximumOrderQty>
  <MinimumStockQty>16</MinimumStockQty>
  <NewPrice>17</NewPrice>
  <OldPrice>18</OldPrice>
  <ProductId>2</ProductId>
  <RegularPrice>7</RegularPrice>
  <SalePrice>8</SalePrice>
  <Size>4</Size>
  <Tags>sample string 6</Tags>
  <UpdatedBy>14</UpdatedBy>
  <UpdatedOn>2021-09-26T22:10:47.2877456+05:30</UpdatedOn>
  <WeightageId>5</WeightageId>
</ProductAttributeEntities>

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.