What it does
Create or replace one page stylesheet. It loads after the global stylesheet. Page and template reference: https://pagehive.io/docs/bot-guide.md (section Pages and partials).
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
pathrequired | string | The page the CSS belongs to. |
sourcerequired | string | CSS for that page only. |
message | string | A short note for the version history, like a commit message. |
verbose | boolean | true lists every file and page of the draft. Otherwise the response lists only what this call changed, plus draft totals. |
Example
Call put_page_css with these arguments:
{
"site_id": "01a1…",
"path": "/about",
"source": "h1{letter-spacing:-.02em}"
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- Pages and partialsOne page per address, with shared headers and footers.
- Images, fonts, PDFs and videoUpload files and use them on your pages.