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


Adds a new image to the system

Request Information

URI Parameters

NameDescriptionTypeAdditional information
catalogid

Catalog ID

integer

Required

Body Parameters

A Json or XML object containing the new image

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
}

application/xml, text/xml

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

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