api.catalog.update
PUT /Catalog/{id}— Catalog
Python
api.catalog.update(catalog_id: int, *, data: UpdateCatalogRequest | dict) -> CatalogWithSellersDto
CLI
ab catalog update <catalog_id> [--data ...]
PUT /Catalog/{id}.
Args:
catalog_id: Catalog identifier.
data: Catalog update payload — same shape as
:class:AddCatalogRequest, including required
start_date and end_date. Accepts an
:class:UpdateCatalogRequest instance or a dict.
Request model: :class:UpdateCatalogRequest
Request body — UpdateCatalogRequest
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 |