POST api/Accessories/UpdateAccessory

Request Information

URI Parameters

None.

Body Parameters

AccessoriesPostModel
NameDescriptionTypeAdditional information
ProductBrandId

byte

None.

Color

string

None.

Weight

string

None.

SpecialFeature

string

None.

RatedOutput

string

None.

RatedInput

string

None.

Dimension

string

None.

AccessoriesImagesList

Collection of ColorProperties

None.

Id

integer

None.

Type

string

None.

Brand

string

None.

Name

string

None.

Description

string

None.

Price

decimal number

None.

IsActive

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

ProductColor

string

None.

Quantity

integer

None.

IsDiscount

boolean

None.

Discount

integer

None.

CreatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductBrandId": 64,
  "Color": "sample string 2",
  "Weight": "sample string 3",
  "SpecialFeature": "sample string 4",
  "RatedOutput": "sample string 5",
  "RatedInput": "sample string 6",
  "Dimension": "sample string 7",
  "AccessoriesImagesList": [
    {
      "Color": "sample string 1",
      "Quantity": 1,
      "AttributeValueId": 2,
      "Path": "sample string 3",
      "Name": "sample string 4"
    },
    {
      "Color": "sample string 1",
      "Quantity": 1,
      "AttributeValueId": 2,
      "Path": "sample string 3",
      "Name": "sample string 4"
    }
  ],
  "Id": 8,
  "Type": "sample string 9",
  "Brand": "sample string 10",
  "Name": "sample string 11",
  "Description": "sample string 12",
  "Price": 1.0,
  "IsActive": true,
  "CreatedBy": "sample string 14",
  "ModifiedBy": "sample string 15",
  "ProductColor": "sample string 16",
  "Quantity": 1,
  "IsDiscount": true,
  "Discount": 1,
  "CreatedOn": "2019-07-21T09:22:33.1670047+05:00"
}

application/xml, text/xml

Sample:
<AccessoriesPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Product">
  <Brand>sample string 10</Brand>
  <CreatedBy>sample string 14</CreatedBy>
  <CreatedOn>2019-07-21T09:22:33.1670047+05:00</CreatedOn>
  <Description>sample string 12</Description>
  <Discount>1</Discount>
  <Id>8</Id>
  <IsActive>true</IsActive>
  <IsDiscount>true</IsDiscount>
  <ModifiedBy>sample string 15</ModifiedBy>
  <Name>sample string 11</Name>
  <Price>1</Price>
  <ProductColor>sample string 16</ProductColor>
  <Quantity>1</Quantity>
  <Type>sample string 9</Type>
  <AccessoriesImagesList>
    <ColorProperties>
      <AttributeValueId>2</AttributeValueId>
      <Name>sample string 4</Name>
      <Path>sample string 3</Path>
      <Color>sample string 1</Color>
      <Quantity>1</Quantity>
    </ColorProperties>
    <ColorProperties>
      <AttributeValueId>2</AttributeValueId>
      <Name>sample string 4</Name>
      <Path>sample string 3</Path>
      <Color>sample string 1</Color>
      <Quantity>1</Quantity>
    </ColorProperties>
  </AccessoriesImagesList>
  <Color>sample string 2</Color>
  <Dimension>sample string 7</Dimension>
  <ProductBrandId>64</ProductBrandId>
  <RatedInput>sample string 6</RatedInput>
  <RatedOutput>sample string 5</RatedOutput>
  <SpecialFeature>sample string 4</SpecialFeature>
  <Weight>sample string 3</Weight>
</AccessoriesPostModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.