layouts_push
Push layout files from a local directory to Voog CMS using a manifest.json and .tpl files, with optional file filtering. Returns per-file success and failure details.
Instructions
Read manifest.json + .tpl files from target_dir and PUT each to /layouts/{id}. Optional files=["layouts/x.tpl", ...] filter pushes only the named relative paths. files=null (or omitted) pushes every type=layout entry in the manifest (non-layout entries — e.g. type=layout_asset from voog.py-pulled trees — are captured as per-file failures rather than mis-PUT to /layouts/{id}). Returns per-file success/failure breakdown; missing files and PUT errors are captured per-entry and do not abort the remaining pushes. Recommended pre-flight: site_snapshot for full backup before a mass push.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site name from voog_list_sites | |
| target_dir | Yes | Absolute path of a previously-pulled tree (must contain manifest.json) | |
| files | No | Optional list of relative paths to push (e.g. 'layouts/default.tpl'). Null/omitted = push all manifest entries. |