Images

Crop an image

Accepts a base64-encoded image, optionally duplicates it if shared across items, uploads the cropped version to S3, and updates the image record.

post/api/crop-image

Request

Request body

filestring required

Base64-encoded image data URI (must start with data:image/)

typestring nullable

The upload type category

idinteger nullable

The image ID

item_image_idinteger nullable

The item image ID (triggers duplication if image is used on multiple items)

Example request

{
  "file": "data:image/png;base64,iVBORw0KGgo...",
  "type": "generic"
}

Response

Updated image record

object required

Changes

No recorded changes to this operation across all 2 revisions of this API.