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


Updates a collection of images from a specific Product

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

CatalogID

integer

Required

Body Parameters

A Json or XML object containing the new images

Collection of ImageGallery
NameDescriptionTypeAdditional information
ImageGalleryID

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

integer

None.

ImageGalleryFile

database reference = product_images.image

string

String length: inclusive between 0 and 65535

ImageGalleryCaption

database reference = product_images.caption

string

String length: inclusive between 0 and 65535

ImageGallerySorting

database reference = product_images.sorting

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ImageGalleryID": 1,
    "ImageGalleryFile": "sample string 1",
    "ImageGalleryCaption": "sample string 2",
    "ImageGallerySorting": 1
  },
  {
    "ImageGalleryID": 1,
    "ImageGalleryFile": "sample string 1",
    "ImageGalleryCaption": "sample string 2",
    "ImageGallerySorting": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfImageGallery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ImageGallery>
    <ImageGalleryID>1</ImageGalleryID>
    <ImageGalleryFile>sample string 1</ImageGalleryFile>
    <ImageGalleryCaption>sample string 2</ImageGalleryCaption>
    <ImageGallerySorting>1</ImageGallerySorting>
  </ImageGallery>
  <ImageGallery>
    <ImageGalleryID>1</ImageGalleryID>
    <ImageGalleryFile>sample string 1</ImageGalleryFile>
    <ImageGalleryCaption>sample string 2</ImageGalleryCaption>
    <ImageGallerySorting>1</ImageGallerySorting>
  </ImageGallery>
</ArrayOfImageGallery>

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