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


Updates a collection of upselling items from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

CatalogID

integer

Required

Body Parameters

A Json or XML object containing the new upselling items

Collection of UpSellingItem
NameDescriptionTypeAdditional information
UpSellingIndexID

Primary key, auto-incremented. database reference = product_accessories.id

integer

None.

UpSellingItemID

database reference = product_accessories.accessory_id

integer

None.

UpSellingItemSorting

database reference = product_accessories.sorting

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "UpSellingIndexID": 1,
    "UpSellingItemID": 1,
    "UpSellingItemSorting": 2
  },
  {
    "UpSellingIndexID": 1,
    "UpSellingItemID": 1,
    "UpSellingItemSorting": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpSellingItem xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UpSellingItem>
    <UpSellingIndexID>1</UpSellingIndexID>
    <UpSellingItemID>1</UpSellingItemID>
    <UpSellingItemSorting>2</UpSellingItemSorting>
  </UpSellingItem>
  <UpSellingItem>
    <UpSellingIndexID>1</UpSellingIndexID>
    <UpSellingItemID>1</UpSellingItemID>
    <UpSellingItemSorting>2</UpSellingItemSorting>
  </UpSellingItem>
</ArrayOfUpSellingItem>

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":"UpSellingIndexID",
    "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.