Read a live file of a site
read_site_fileReturns the current content of one file on a RunLite site's live version, checked against the sha256 it was deployed with. Text files (pages, CSS, JavaScript, JSON, SVG and the like) come back as text, up to 30,000 characters a call; a longer file is read in parts by passing the returned nextOffset as offset. Images, fonts, PDFs and media return only their size and sha256. Changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A live file's path, e.g. "index.html" or "css/site.css". | |
| offset | No | Character to start from, for a file read in parts. Default 0. | |
| siteId | Yes |