Source code

Edit a page route

Rewrites and normalizes a page's definePage route literal. Takes the edit lease when no leaseToken is sent.

patch/websiteSourceCode/pages/route

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websiteSourceCode/pages/route
  • Auth: HTTP bearer

Request body

websiteIdstring required
namestring required
routestring required
leaseTokenstring

Omit to have Cactal take the edit lease for you; pass a token from websiteSourceCode.lease.acquire to take over from another editor.

Response

The committed edit and the normalized route.

versioninteger required

Head version after the edit: the previous head plus one, or the unchanged head when changed is false.

changedboolean required

false when the edit was a no-op and no new version was created.

routestring required

Normalized route literal now in the page source.

routeChangedboolean required

Whether the route differs from its previous value.

Changes

No recorded changes to this operation across all 1 revision of this API.