Skip to main content
Version: 202201

Update Product Image

PUT 

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

Update the details of an existing product image using its unique identifier.

Request

Path Parameters

    product_id stringrequired

    Product's ID

    image_id stringrequired

    Image's ID

Body

    image object
    positionint32

    The position of the image.

    srcstringrequired

    The relative URL of the image.

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: 2
    srcstring
    Example: //cdn.shoplazza.com/loading.png
    widthinteger
    Default value: 0
    Example: 100
    heightinteger
    Default value: 0
    Example: 100
    altstring
    Example:
    created_atstring
    Example: 2024-04-08T07:13:28Z
    updated_atstring
    Example: 2024-04-16T08:37:28Z