DELETE Product/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ProductDto
NameDescriptionTypeAdditional information
ProductId

integer

Required

Name

string

Required

String length: inclusive between 0 and 500

FullName

string

Required

String length: inclusive between 0 and 1000

CategoryId

integer

Required

Description

string

String length: inclusive between 0 and 4000

IsDeleted

boolean

None.

ImageUrl

string

String length: inclusive between 0 and 4000

Images

Collection of ProductImageDto

None.

Characteristics

Collection of CharacteristicDto

None.

Sort

integer

None.

SourceCode

string

Required

String length: inclusive between 0 and 500

Response Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "Name": "sample string 2",
  "FullName": "sample string 3",
  "CategoryId": 4,
  "Description": "sample string 5",
  "IsDeleted": true,
  "ImageUrl": "sample string 6",
  "Images": [
    {
      "ColorId": 1,
      "Description": "sample string 1",
      "ImageUrl": "sample string 2"
    },
    {
      "ColorId": 1,
      "Description": "sample string 1",
      "ImageUrl": "sample string 2"
    }
  ],
  "Characteristics": [
    {
      "CharacteristicId": 1,
      "ProductId": 2,
      "CharacteristicTypeId": 3,
      "Value": "sample string 4",
      "MeasureId": 1
    },
    {
      "CharacteristicId": 1,
      "ProductId": 2,
      "CharacteristicTypeId": 3,
      "Value": "sample string 4",
      "MeasureId": 1
    }
  ],
  "Sort": 7,
  "SourceCode": "sample string 8"
}

application/xml, text/xml

Sample:
<ProductDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PackageSite.Models.Dto">
  <SourceCode>sample string 8</SourceCode>
  <CategoryId>4</CategoryId>
  <Characteristics>
    <CharacteristicDto>
      <CharacteristicId>1</CharacteristicId>
      <CharacteristicTypeId>3</CharacteristicTypeId>
      <MeasureId>1</MeasureId>
      <ProductId>2</ProductId>
      <Value>sample string 4</Value>
    </CharacteristicDto>
    <CharacteristicDto>
      <CharacteristicId>1</CharacteristicId>
      <CharacteristicTypeId>3</CharacteristicTypeId>
      <MeasureId>1</MeasureId>
      <ProductId>2</ProductId>
      <Value>sample string 4</Value>
    </CharacteristicDto>
  </Characteristics>
  <Description>sample string 5</Description>
  <FullName>sample string 3</FullName>
  <ImageUrl>sample string 6</ImageUrl>
  <Images>
    <ProductImageDto>
      <ColorId>1</ColorId>
      <Description>sample string 1</Description>
      <ImageUrl>sample string 2</ImageUrl>
    </ProductImageDto>
    <ProductImageDto>
      <ColorId>1</ColorId>
      <Description>sample string 1</Description>
      <ImageUrl>sample string 2</ImageUrl>
    </ProductImageDto>
  </Images>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 2</Name>
  <ProductId>1</ProductId>
  <Sort>7</Sort>
</ProductDto>