POST v1/Products/{productId}/Resources/Link
Add the Product Resource Link
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productId |
The Product id |
integer |
Required. |
Body Parameters
The Link data
ProductResourceLink| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Gets or sets the name |
string |
None. |
| ContentType |
The type of resource. Following values are allowed: 0 = Generic 1 = Image 2 = Movie 3 = Document |
integer |
None. |
| Url |
Gets or sets the URL |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ContentType": 2,
"Url": "sample string 3"
}
application/xml, text/xml
Sample:
<ProductResourceLink xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> <ContentType>2</ContentType> <Url>sample string 3</Url> </ProductResourceLink>
Response Information
Resource Description
The HttpResponseMessage object
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |