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


Adds a new related product to the system

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

Catalog ID

integer

Required

Body Parameters

A Json or XML object containing the new related product

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": 1
}

application/xml, text/xml

Sample:
<RelatedProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RelatedIndexID>1</RelatedIndexID>
  <RelatedProductID>1</RelatedProductID>
  <RelatedProductSorting>1</RelatedProductSorting>
</RelatedProduct>

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":"201",
    "Message":"Created 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.