POST api/stores/{storeId}/shoppable-images

Request Information

URI Parameters

NameDescriptionTypeAdditional information
storeId

integer

Required

Body Parameters

ShoppableImageDto
NameDescriptionTypeAdditional information
Id

integer

None.

StoreId

integer

None.

ImageUrl

string

None.

Hotspots

Collection of ShoppableHotspotDto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "storeId": 2,
  "imageUrl": "sample string 3",
  "hotspots": [
    {
      "id": 1,
      "productId": 2,
      "productName": "sample string 3",
      "price": 4.0,
      "x": 5.0,
      "y": 6.0
    },
    {
      "id": 1,
      "productId": 2,
      "productName": "sample string 3",
      "price": 4.0,
      "x": 5.0,
      "y": 6.0
    }
  ]
}

application/xml, text/xml

Sample:
<ShoppableImageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos">
  <Hotspots>
    <ShoppableHotspotDto>
      <Id>1</Id>
      <Price>4</Price>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <X>5</X>
      <Y>6</Y>
    </ShoppableHotspotDto>
    <ShoppableHotspotDto>
      <Id>1</Id>
      <Price>4</Price>
      <ProductId>2</ProductId>
      <ProductName>sample string 3</ProductName>
      <X>5</X>
      <Y>6</Y>
    </ShoppableHotspotDto>
  </Hotspots>
  <Id>1</Id>
  <ImageUrl>sample string 3</ImageUrl>
  <StoreId>2</StoreId>
</ShoppableImageDto>

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.