Place or remove a website photo
soclo_page_media_savePlace an owned Library image (asset_id) in a renderer section and role, or remove it with remove:true. Needs the exact displayed if_unchanged revision, and a description (alt_text) or decorative:true. Free. Without confirm:true it returns a preview only; pass confirm:true only after the owner approves. A lost write reply must be reconciled with soclo_page_get and soclo_page_versions before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | ||
| role | Yes | The photo slot within the section. | |
| remove | No | true to remove the image from that section and role instead of placing one. | |
| confirm | No | true only after the owner approved the exact change. Omit or pass false to get a preview: nothing is sent. | |
| page_id | No | Which page of the site, from soclo_page_pages (or soclo_page_design_get). Omit for the home page — changing a child page without this changes the home page instead. | |
| alt_text | No | A description of the photo, required unless it is decorative or removed. | |
| asset_id | No | An owned image from Library, resolved by the server. | |
| decorative | No | true if the photo is purely decorative (then no description is needed). | |
| focal_point | No | ||
| if_unchanged | Yes | Exact displayed site, page-list or History revision, as last read; never refresh it invisibly. | |
| section_id_or_kind | Yes | The renderer section receiving the image. |