How to link uploaded assets to Custom Product Page?

Hello,

It's pretty clear how to upload assets on App Store: https://developer.apple.com/documentation/appstoreconnectapi/uploading_assets_to_app_store_connect.

It's also pretty clear how to create/manage Custom Product Pages: https://developer.apple.com/documentation/appstoreconnectapi/app_store/custom_product_pages_and_localizations

But after lots of time digging on how I'm supposed to link the assets to the custom product pages, I can't find the documentation about it. How can this be dore programmatically?

Thanks in advance!

Ok, I figured it out. Basically, once you have created a CPP along with its first cpp version and localization, it creates automatically a appScreenshotSets and appPreviewSets, indexed by the CPP version itself. Once you have that, you use those sets as receptacle when you upload the assets. It was really not super clear (since there is no flowchart of how we are supposed to use the APIs).

How to link uploaded assets to Custom Product Page?
 
 
Q