Skip to main content

Update product images

Update images and marketing color

Function UpdateProductImages(Val ClientID, Val APIKey, Val ProductID, Val ImagesArray = "", Val Array360 = "", Val MarketingColor = "") Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
ProductID--productidString, NumberProduct identifier
ImagesArray--imagesArray Of StringArray of images URLs
Array360--images360Array Of StringArray of 360 images
MarketingColor--colorStringMarketing color

Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API


tip

On each method call, send all the images that should be on the product card

To upload, pass the link address of the image to public cloud storage. Image format of the linked image: JPG or PNG

If you want to change the composition or order of the images, get the information using the GetProductInformation() method, copy the data of the images, images360, color_image fields, change and complete the composition or order as needed

Method at API documentation: post /v1/product/pictures/import


1C:Enterprise/OneScript code example
    ClientID  = "2128753";
APIKey = "7cc90d26-33e4-499b...";
ProductID = "1235184552";

Image1 = "https://api.athenaeum.digital/test_data/picture.jpg";
Image2 = "https://api.athenaeum.digital/test_data/picture2.jpg";

MarketingColor = "GREEN";

ImagesArray = New Array;
ImagesArray.Add(Image1);
ImagesArray.Add(Image2);

Result = OPI_Ozon.UpdateProductImages(ClientID
, APIKey
, ProductID
, ImagesArray
,
, MarketingColor);
    oint ozon UpdateProductImages \
--clientid "***" \
--apikey "***" \
--productid 1235207802 \
--images "['https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg','https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg']" \
--color "GREEN"
Result
{
"result": {
"pictures": [
{
"product_id": 1215763512,
"url": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
"state": "imported",
"is_primary": true,
"is_360": false,
"is_color": false
},
{
"product_id": 1215763512,
"url": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg",
"state": "imported",
"is_primary": false,
"is_360": false,
"is_color": false
},
{
"product_id": 1215763512,
"url": "GREEN",
"state": "imported",
"is_primary": false,
"is_360": false,
"is_color": true
}
]
}
}