Change a website page
Rewrites the document, the metadata or the address of one page. Needs
content: write, and is a write.
Send at least one of path, html and meta. An omitted property is
left alone; html replaces the whole document, because a page is one
document and there is nothing in it Commune understands well enough to
patch.
kind and status are not here. The kind decides whether path is a
path or a pattern, so changing it would make a valid page invalid in one
statement; the state has two operations of its own, so that an edit to
your text cannot put a page live by accident.
If the page is published the change is live immediately. Changing an
article pattern keeps the old URLs working: a request to one of them
is redirected to the article's new address.
Publishes no event.
Loading...
Waiting for a request to be sent.