POST api/store-portal/products

Request Information

URI Parameters

None.

Body Parameters

StoreProductUpsertRequest
NameDescriptionTypeAdditional information
Name

string

None.

ImageUrl

string

None.

Price

decimal number

None.

IsAvailable

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "imageUrl": "sample string 2",
  "price": 3.0,
  "isAvailable": true
}

application/xml, text/xml

Sample:
<StoreProductUpsertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.StorePortal">
  <ImageUrl>sample string 2</ImageUrl>
  <IsAvailable>true</IsAvailable>
  <Name>sample string 1</Name>
  <Price>3</Price>
</StoreProductUpsertRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StoreProductUpsertRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.