PUT 3dCartWebAPI/v1/Products/{catalogid}/Related


Updates a collection of related products from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

CatalogID

integer

Required

Body Parameters

A Json or XML object containing the new related products

Collection of RelatedProduct
NameDescriptionTypeAdditional 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": 2
  },
  {
    "RelatedIndexID": 1,
    "RelatedProductID": 1,
    "RelatedProductSorting": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfRelatedProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RelatedProduct>
    <RelatedIndexID>1</RelatedIndexID>
    <RelatedProductID>1</RelatedProductID>
    <RelatedProductSorting>2</RelatedProductSorting>
  </RelatedProduct>
  <RelatedProduct>
    <RelatedIndexID>1</RelatedIndexID>
    <RelatedProductID>1</RelatedProductID>
    <RelatedProductSorting>2</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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.