api.lots.create
POST /Lot— Catalog
Python
api.lots.create(*, data: AddLotRequest | dict) -> LotDto
CLI
ab lots create [--data ...]
POST /Lot.
Args:
data: Lot creation payload with customer_item_id,
image_links, initial_data (a :class:LotDataDto
with the measurements), catalogs (list of
:class:LotCatalogDto), and overriden_data.
Accepts an :class:AddLotRequest instance or a dict.
Request model: :class:AddLotRequest
Request body — AddLotRequest
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Customer item ID |
|
|
no |
Image URLs attached to the lot |
|
|
no |
Per-catalog override data entries |
|
|
no |
Catalogs this lot belongs to |
|
|
no |
Initial lot measurements |
Response
Returns LotDto.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Lot ID |
|
|
no |
Customer item ID |
|
|
no |
Initial lot data |
|
|
no |
Override entries |
|
|
no |
Catalog associations (each entry is a LotCatalogDto) |
|
|
no |
Attached image links |