api.catalog.create
POST /Catalog— Catalog
Python
api.catalog.create(*, data: AddCatalogRequest | dict) -> CatalogWithSellersDto
CLI
ab catalog create [--data ...]
POST /Catalog.
Args:
data: Catalog creation payload with customer_catalog_id,
agent, title, start_date (required datetime),
end_date (required datetime), and seller_ids.
Accepts an :class:AddCatalogRequest instance or a dict.
Request model: :class:AddCatalogRequest
Request body — AddCatalogRequest
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Customer-facing catalog ID |
|
|
no |
Assigned agent code |
|
|
no |
Catalog title |
|
|
yes |
Catalog start date-time |
|
|
yes |
Catalog end date-time |
|
|
no |
Seller IDs to attach |
Response
Returns CatalogWithSellersDto.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Catalog ID |
|
|
no |
Customer-facing catalog ID |
|
|
no |
Assigned agent code |
|
|
no |
Catalog title |
|
|
yes |
Catalog start date-time |
|
|
yes |
Catalog end date-time |
|
|
yes |
Whether the catalog is completed |
|
|
no |
Attached sellers |