PATCH https://api.usecommune.com/website-pages/{page} Production. There is no separate sandbox host.

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.

Path parameters

  • string(uuid) Required

Request Headers

  • string Required
  • string

Body

  • string
  • string
  • object
PATCH /website-pages/{page}
Loading...

Share your request

Use this link to easily share a pre-filled request of this operation. Everything you filled will be shared apart from the authentication fields.

Request URL

https://api-reference.usecommune.dev/explorer/operation/operation-updatesitepage

Send a delete request

It looks like you’re about to send a DELETE request to this API. This type of request carries a risk of permanent and irreversible data loss.

Are you sure you want to continue?
Response
Waiting for a request to be sent.