Skip to main content
Version: 202201

Create Product Image

POST 

/openapi/2022-01/products/:product_id/images

Create a new product image with the provided details.

Request

Path Parameters

    product_id stringrequired

    Product's ID

Body

    image object
    positionint32

    The position of the image. Must be greater than 0 if provided.

    srcstringrequired

    The relative URL of the image.

    altstring

    The alt text of the image.

    widthint32

    The width of the image in pixels. Must be greater than 0 if provided.

    heightint32

    The height of the image in pixels. Must be greater than 0 if provided.

Responses

200

Schema
    image object
    idstring
    Example: 91d032e7-bbc8-47e4-8668-9ba6fe714de6
    product_idstring
    Example: 636a07da-39eb-4829-bde9-b65fae1c28b0
    positioninteger
    Default value: 0
    Example: 1
    srcstring
    Example: //cdn.shoplazza.com/efd33b921cacd5311a32dd03a9bc8740.png
    widthinteger
    Default value: 0
    Example: 1588
    heightinteger
    Default value: 0
    Example: 2246
    altstring
    Example:
    created_atstring
    Example: 2024-04-08T07:13:28Z
    updated_atstring
    Example: 2024-04-08T07:13:28Z