DELETE api/Products/{id}

Removes a specified product.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the product,

integer

Required

Body Parameters

None.

Response Information

Resource Description

Product
NameDescriptionTypeAdditional information
ProductKey

integer

None.

ProductAlternateKey

string

None.

ProductSubcategoryKey

integer

None.

WeightUnitMeasureCode

string

None.

SizeUnitMeasureCode

string

None.

EnglishProductName

string

None.

SpanishProductName

string

None.

FrenchProductName

string

None.

StandardCost

decimal number

None.

FinishedGoodsFlag

boolean

None.

Color

string

None.

SafetyStockLevel

integer

None.

ReorderPoint

integer

None.

ListPrice

decimal number

None.

Size

string

None.

SizeRange

string

None.

Weight

decimal number

None.

DaysToManufacture

integer

None.

ProductLine

string

None.

DealerPrice

decimal number

None.

Class

string

None.

Style

string

None.

ModelName

string

None.

LargePhoto

Collection of byte

None.

EnglishDescription

string

None.

FrenchDescription

string

None.

ChineseDescription

string

None.

ArabicDescription

string

None.

HebrewDescription

string

None.

ThaiDescription

string

None.

GermanDescription

string

None.

JapaneseDescription

string

None.

TurkishDescription

string

None.

StartDate

date

None.

EndDate

date

None.

Status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductKey": 1,
  "ProductAlternateKey": "sample string 2",
  "ProductSubcategoryKey": 1,
  "WeightUnitMeasureCode": "sample string 3",
  "SizeUnitMeasureCode": "sample string 4",
  "EnglishProductName": "sample string 5",
  "SpanishProductName": "sample string 6",
  "FrenchProductName": "sample string 7",
  "StandardCost": 1.0,
  "FinishedGoodsFlag": true,
  "Color": "sample string 9",
  "SafetyStockLevel": 1,
  "ReorderPoint": 1,
  "ListPrice": 1.0,
  "Size": "sample string 10",
  "SizeRange": "sample string 11",
  "Weight": 1.1,
  "DaysToManufacture": 1,
  "ProductLine": "sample string 12",
  "DealerPrice": 1.0,
  "Class": "sample string 13",
  "Style": "sample string 14",
  "ModelName": "sample string 15",
  "LargePhoto": "QEA=",
  "EnglishDescription": "sample string 16",
  "FrenchDescription": "sample string 17",
  "ChineseDescription": "sample string 18",
  "ArabicDescription": "sample string 19",
  "HebrewDescription": "sample string 20",
  "ThaiDescription": "sample string 21",
  "GermanDescription": "sample string 22",
  "JapaneseDescription": "sample string 23",
  "TurkishDescription": "sample string 24",
  "StartDate": "2021-12-02T23:40:35.1911291-08:00",
  "EndDate": "2021-12-02T23:40:35.1911291-08:00",
  "Status": "sample string 25"
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hydocs.Areas.AdWorks.Models.DB">
  <ArabicDescription>sample string 19</ArabicDescription>
  <ChineseDescription>sample string 18</ChineseDescription>
  <Class>sample string 13</Class>
  <Color>sample string 9</Color>
  <DaysToManufacture>1</DaysToManufacture>
  <DealerPrice>1</DealerPrice>
  <EndDate>2021-12-02T23:40:35.1911291-08:00</EndDate>
  <EnglishDescription>sample string 16</EnglishDescription>
  <EnglishProductName>sample string 5</EnglishProductName>
  <FinishedGoodsFlag>true</FinishedGoodsFlag>
  <FrenchDescription>sample string 17</FrenchDescription>
  <FrenchProductName>sample string 7</FrenchProductName>
  <GermanDescription>sample string 22</GermanDescription>
  <HebrewDescription>sample string 20</HebrewDescription>
  <JapaneseDescription>sample string 23</JapaneseDescription>
  <LargePhoto>QEA=</LargePhoto>
  <ListPrice>1</ListPrice>
  <ModelName>sample string 15</ModelName>
  <ProductAlternateKey>sample string 2</ProductAlternateKey>
  <ProductKey>1</ProductKey>
  <ProductLine>sample string 12</ProductLine>
  <ProductSubcategoryKey>1</ProductSubcategoryKey>
  <ReorderPoint>1</ReorderPoint>
  <SafetyStockLevel>1</SafetyStockLevel>
  <Size>sample string 10</Size>
  <SizeRange>sample string 11</SizeRange>
  <SizeUnitMeasureCode>sample string 4</SizeUnitMeasureCode>
  <SpanishProductName>sample string 6</SpanishProductName>
  <StandardCost>1</StandardCost>
  <StartDate>2021-12-02T23:40:35.1911291-08:00</StartDate>
  <Status>sample string 25</Status>
  <Style>sample string 14</Style>
  <ThaiDescription>sample string 21</ThaiDescription>
  <TurkishDescription>sample string 24</TurkishDescription>
  <Weight>1.1</Weight>
  <WeightUnitMeasureCode>sample string 3</WeightUnitMeasureCode>
</Product>