assign_asset_to_slot
Assign, reassign, or clear assets in landing-page or side-page slots. Specify slot keys like 'hero.backgroundVideo' and asset IDs to update the slot immediately; pass clear:true to empty it.
Instructions
Assign, reassign, or clear the asset in a landing-page or side-page slot. slotKey is a dotted key like 'hero.backgroundVideo' or 'cta.image' (discover valid keys with list_asset_slots). For array slots pass assetIds; for single slots pass assetId. The asset must already be in the brand's library (see list_assets / upload_asset / import_asset_from_url) and match the slot's media type. Pass sidePageSlug to target a side page. Set clear:true (or assetId:null) to empty the slot. Synchronous — the change applies immediately, no polling. Main-LP changes create a new draft version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Landing page slug | |
| clear | No | Set true to empty the slot | |
| assetId | No | Asset ID for a single (non-array) slot. Pass null to clear the slot. | |
| pageKey | No | Page key within the LP (defaults to 'main'; ignored when sidePageSlug is set) | |
| slotKey | Yes | Dotted slot key, e.g. 'hero.backgroundVideo' or 'cta.image' (from list_asset_slots) | |
| assetIds | No | Asset IDs for an array slot. Pass an empty array (or null) to clear the slot. | |
| sidePageSlug | No | Side page slug — target this side page's slot instead of the main LP's |