Skip to main content
POST
Reorder product photos

Authorizations

X-API-Key
string
header
required

Path Parameters

session_id
string
required

Unique session short_id identifier.

Body

application/json

Request body for reordering the photo gallery.

photo_short_ids
string[]
required

Ordered list of photo slugs representing the desired display order.

Response

OK

photo_type
enum<string>
required

Classification label — which side or aspect of the product this photo shows. Drives routing through the vision pipeline (e.g. nutrition photos go to the nutrition-facts extractor).

Available options:
front,
back,
left,
right,
top,
bottom,
nutrition,
ingredients,
barcode,
recycling,
certification,
other
s3_key
string
required

S3 object key for the photo file.

original_filename
string
required

Original filename.

sort_order
integer
required

Display position.

created
string<date-time>
required

Timestamp when the photo was registered.

metadata
Metadata · object

Developer-attached key/value data attached to this object. Up to 50 keys; key max 40 chars, value max 500 chars.

file_size
integer | null

File size in bytes.

capture_short_id
string | null

Slug of the linked barcode capture.