v1

latestOpenAPI 3.1.02026-08-06911,228852.2 KB
Rich Item

Update picture

Partially updates the rich item to set the picture or rawPicture.

patch/i/richItem/{businessId}/{sku}

Path parameters

businessIdinteger required

The unique identifier for the business.

Example:454335871
skustring required

The SKU of the item.

Example:UGG-BB-PUR-06

Request body

businessIdinteger required

The id of the business

skustring required

A stock-keeping unit

fileTypestring

Image format (eg. 'jpeg' or 'png').

picturestring byte

The cropped picture: use this field only to update picture (PATCH method). When updating picture, this field is required.

rawPicturestring byte

The raw picture (before cropping): use this field only to update picture (PATCH method). When updating picture, this field is optional.

Example request

{
  "businessId": 454335871,
  "sku": "UGG-BB-PUR-06",
  "fileType": "png",
  "picture": "iVBORw0KGgoAAAANSUhEUgAAAIwAAACMAQMAAACUDtN9AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAAJwAAACcBKgmRTwAAAANQTFRFAAAAp3o92gAAABlJREFUeJztwTEBAAAAwqD1T20JT6AAAOBrCmQAASsQRDsAAAAASUVORK5CYII=",
  "rawPicture": "iVBORw0KGgoAAAANSUhEUgAAAIwAAACMAQMAAACUDtN9AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAAJwAAACcBKgmRTwAAAANQTFRFAAAAp3o92gAAABlJREFUeJztwTEBAAAAwqD1T20JT6AAAOBrCmQAASsQRDsAAAAASUVORK5CYII="
}

Response

Patched