POST api/store/{storeID}/product/{id}/image
Save or add product image
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Product identifier |
globally unique identifier |
Required |
| storeID |
Store identifier |
integer |
Default value is 0 |
Body Parameters
Product image
ProductImage| Name | Description | Type | Additional information |
|---|---|---|---|
| ImagePosition | integer |
None. |
|
| PLUG_UID | Collection of byte |
None. |
|
| PluGuid | globally unique identifier |
None. |
|
| ImageName | string |
None. |
|
| Description | string |
Relation. This field may not always be loaded or used for updates. |
|
| StoreIDs | Collection of integer |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{
"imagePosition": 1,
"pluG_UID": "y3EkZL5UOkiThCWTPOiR0g==",
"pluGuid": "642471cb-54be-483a-9384-25933ce891d2",
"imageName": "sample string 2",
"description": "sample string 3",
"storeIDs": [
1,
2
]
}
application/xml, text/xml
Sample:
<ProductImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager">
<Description>sample string 3</Description>
<ImageName>sample string 2</ImageName>
<ImagePosition>1</ImagePosition>
<PLUG_UID>y3EkZL5UOkiThCWTPOiR0g==</PLUG_UID>
<PluGuid>642471cb-54be-483a-9384-25933ce891d2</PluGuid>
<StoreIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</StoreIDs>
</ProductImage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Product images for product
None.