Create a product image

Creates a new product image.

post/products/{product_id}/images

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{product_id}/images
  • Auth
    HTTP basic

Path parameters

product_idinteger required

ID of the product which the image will be assigned to.

Request body

imagestring required

URL or base64 encoded image.

imageNamestring

The file name for the image.

descriptionstring

The ALT tag for the product image.

sortOrderinteger

The sort order for the product image.

Response

Product image created successfully.

idinteger

Product image ID.

urlstring

Product image URL.

descriptionstring

The ALT tag for the product image.

sortOrderinteger

Product image sort order.

Changes

No recorded changes to this operation across all 1 revision of this API.