asset_replace
Rename a layout asset in Voog CMS by creating a new asset with the desired filename. Returns both old and new asset IDs, leaving the old asset for manual deletion.
Instructions
Rename a layout_asset by creating a new one with the desired filename (DELETE+POST workaround — Voog API rejects PUT with filename changes). Returns both old and new ids. The OLD asset is intentionally left in place; after updating templates that reference the old filename, delete the old asset manually with DELETE /layout_assets/{old_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from voog_list_sites | |
| asset_id | Yes | Existing layout_asset id | |
| new_filename | Yes | New filename (no '/', '\', or leading '.') |