read_draft_file
Read-only. One text file of the draft (HTML, CSS, SVG, JSON …) as it is now, with sha256 and draft_version (key scope deploy:write). Use it before write_files when you change a page: write_files replaces whole files. A picture answers 415 binary_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path in the draft (e.g. "index.html", "css/site.css") | |
| site | Yes | Site ID (the id from list_sites, e.g. "my-shop") |