PUT 3dCartWebAPI/v1/Products/{catalogid}/Related
Updates a collection of related products from a specific Product
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
catalogid |
CatalogID |
integer |
Required |
Body Parameters
A Json or XML object containing the new related products
Collection of RelatedProductName | Description | Type | Additional information |
---|---|---|---|
RelatedIndexID |
Primary key, auto-incremented. database reference = product_related.id |
integer |
None. |
RelatedProductID |
database reference = product_related.related_id |
integer |
None. |
RelatedProductSorting |
database reference = product_related.sorting |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "RelatedIndexID": 1, "RelatedProductID": 1, "RelatedProductSorting": 1 }, { "RelatedIndexID": 1, "RelatedProductID": 1, "RelatedProductSorting": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfRelatedProduct xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <RelatedProduct> <RelatedIndexID>1</RelatedIndexID> <RelatedProductID>1</RelatedProductID> <RelatedProductSorting>1</RelatedProductSorting> </RelatedProduct> <RelatedProduct> <RelatedIndexID>1</RelatedIndexID> <RelatedProductID>1</RelatedProductID> <RelatedProductSorting>1</RelatedProductSorting> </RelatedProduct> </ArrayOfRelatedProduct>
Sample Request |
|
Please click here to download the C# Rest API Client project from GitHub.
not yet available
not yet available
Response Information
application/json, text/json
Sample:
[ { "Key":"RelatedIndexID", "Value":"1234", "Status":"200", "Message":"updated successfully", } ]
Resource Description
HttpResponseMessageName | 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. |