POST api/pod/product/EditProduct

Request Information

URI Parameters

None.

Body Parameters

FullProductModel
NameDescriptionTypeAdditional information
EntityId

integer

Required

AvailableCount

decimal number

None.

Name

string

Required

Price

decimal number

Required

Discount

decimal number

Required

CanComment

boolean

None.

CanLike

boolean

None.

Enabled

boolean

None.

UniqueId

string

None.

Description

string

None.

TaxRate

decimal number

None.

Unlimited

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityId": 1,
  "AvailableCount": 2.0,
  "Name": "sample string 3",
  "Price": 4.0,
  "Discount": 5.0,
  "CanComment": true,
  "CanLike": true,
  "Enabled": true,
  "UniqueId": "sample string 9",
  "Description": "sample string 10",
  "TaxRate": 11.1,
  "Unlimited": true
}

application/xml, text/xml

Sample:
<FullProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <AvailableCount>2</AvailableCount>
  <CanComment>true</CanComment>
  <CanLike>true</CanLike>
  <Description>sample string 10</Description>
  <Discount>5</Discount>
  <Enabled>true</Enabled>
  <Name>sample string 3</Name>
  <Price>4</Price>
  <TaxRate>11.1</TaxRate>
  <UniqueId>sample string 9</UniqueId>
  <Unlimited>true</Unlimited>
  <EntityId>1</EntityId>
</FullProductModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseViewModel
NameDescriptionTypeAdditional information
HasErrors

boolean

None.

Messages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "HasErrors": false,
  "Messages": []
}

application/xml, text/xml

Sample:
<BaseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Barg.WebAPI.Models">
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
</BaseViewModel>