question

HectorRodriguezFigueroa avatar image
HectorRodriguezFigueroa asked

Is there a programmatic way or api to add a bundle to a catalog while specifying its set of contained items ?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Yes, you can add a bundle through the API call via SetCatalogItems. The bundle in a catalog is still an item.

According to the API documentation, in the UpdateCatalogItemsRequest, the property Catalog needs a list of CatalogItem. While there is a property named Bundle(which is a CatalogItemBundleInfo ) in the CatalogItem. In the normal circumstance, Bundle property is not required, thus you can assign a CatalogItemBundleInfo instance in order to define this item as a bundle.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.