Restyle collection cards
set_card_designChange how every card of a collection list looks, in one call: design swaps the whole card (a library design from set_card_design (with no design) — each takes the site's own fonts and colours and keeps every field the card shows — a plain arrangement, or 'as-designed' to put the original back), and style adjusts it (surface, corners, padding, photo shape, text alignment, hover). Prefer this to rewriting a card template with patch_nodes/insert_nodes (with parent_id and node_json): it cannot drop a field, break the card's link or lose the way back. Writes one draft version. With neither design nor style it changes nothing and returns the designs and style choices that fit this list's card, with its current style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Card style settings, applied after `design`: surface, corners, padding, photoShape, align, hover. Omitted settings are left as they are. | |
| design | No | 'as-designed' (put back the card the site was built with), a plain arrangement ('image-top', 'overlay', 'image-left', 'text-only'), or a library design id from set_card_design (with no design). | |
| site_id | Yes | ||
| list_node_id | Yes | Id of the collection-list node whose cards to change. |