POST api/ImageLinks/Insert
Request Information
URI Parameters
None.
Body Parameters
Collection of EskimoClassLibraries.clsImageLinkInsert| Name | Description | Type | Additional information |
|---|---|---|---|
| EskimoImageID |
The numeric Eskimo ID of the image |
integer |
Required |
| ObjectID |
The Eskimo ID of the object this links so. For instance, if it is a SKU image, it will be the sku_code from the SKUs controller; if it is a Category image type, then it will be the Eskimo_Category_ID from the Categories controller etc. |
string |
Required |
| ImageLinkType | EskimoClassLibraries.clsImageLinkBase+ImageLinkTypeEnum |
Required |
|
| Index |
If a product has more than one image, it will have three entries in the images controller, the first (main) one will have an Index of 1 and the subsequent ones will be 2 and 3. |
integer |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"EskimoImageID": 1,
"ObjectID": "sample string 2",
"ImageLinkType": 100,
"Index": 3
},
{
"EskimoImageID": 1,
"ObjectID": "sample string 2",
"ImageLinkType": 100,
"Index": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfclsImageLinkInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries">
<clsImageLinkInsert>
<EskimoImageID>1</EskimoImageID>
<ImageLinkType>SKU</ImageLinkType>
<Index>3</Index>
<ObjectID>sample string 2</ObjectID>
</clsImageLinkInsert>
<clsImageLinkInsert>
<EskimoImageID>1</EskimoImageID>
<ImageLinkType>SKU</ImageLinkType>
<Index>3</Index>
<ObjectID>sample string 2</ObjectID>
</clsImageLinkInsert>
</ArrayOfclsImageLinkInsert>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | System.Version |
None. |
|
| Content | System.Net.Http.HttpContent |
None. |
|
| StatusCode | System.Net.HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |