POST api/Shop/Products/Update

Request Information

URI Parameters

None.

Body Parameters

ProductDTO
NameDescriptionTypeAdditional information
id

globally unique identifier

None.

categoryId

globally unique identifier

None.

categoryName

string

None.

name

string

None.

brand

string

None.

description

string

None.

imageUrl

string

None.

price

decimal number

None.

originalPrice

decimal number

None.

commissionRate

decimal number

None.

affiliateUrl

string

None.

shopName

string

None.

speciesTags

string

None.

tags

string

None.

status

string

None.

rating

decimal number

None.

salesCount

integer

None.

note

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "1345fed9-f180-4584-815b-61e4229ff587",
  "categoryId": "c6dce699-8015-4223-bd0d-c644c52119a0",
  "categoryName": "sample string 2",
  "name": "sample string 3",
  "brand": "sample string 4",
  "description": "sample string 5",
  "imageUrl": "sample string 6",
  "price": 7.0,
  "originalPrice": 1.0,
  "commissionRate": 1.0,
  "affiliateUrl": "sample string 8",
  "shopName": "sample string 9",
  "speciesTags": "sample string 10",
  "tags": "sample string 11",
  "status": "sample string 12",
  "rating": 1.0,
  "salesCount": 13,
  "note": "sample string 14"
}

application/xml, text/xml

Sample:
<ShopController.ProductDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetShop.API.Controllers">
  <affiliateUrl>sample string 8</affiliateUrl>
  <brand>sample string 4</brand>
  <categoryId>c6dce699-8015-4223-bd0d-c644c52119a0</categoryId>
  <categoryName>sample string 2</categoryName>
  <commissionRate>1</commissionRate>
  <description>sample string 5</description>
  <id>1345fed9-f180-4584-815b-61e4229ff587</id>
  <imageUrl>sample string 6</imageUrl>
  <name>sample string 3</name>
  <note>sample string 14</note>
  <originalPrice>1</originalPrice>
  <price>7</price>
  <rating>1</rating>
  <salesCount>13</salesCount>
  <shopName>sample string 9</shopName>
  <speciesTags>sample string 10</speciesTags>
  <status>sample string 12</status>
  <tags>sample string 11</tags>
</ShopController.ProductDTO>

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.