websites

Update Website Page Content

Changed on

Replace ONE page's HTML, addressed by its route path.

path: "/" targets the homepage — the same content PUT .../content writes. A missing page is 404 website_page_not_found (use POST .../pages to add it). Content changes do NOT auto-republish (same contract as the homepage flow).

put/websites/{website_id}/pages/content

Request

  • Base URL
    https://api.moda.app/v1
  • URL
    https://api.moda.app/v1/websites/{website_id}/pages/content
  • Auth
    HTTP bearer

Path parameters

website_idstring uuid required

Headers

Moda-Version'2026-04-12' | '2026-05-01'
Example:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Request body

pathstring required

Page route path, e.g. '/' or '/pricing' (normalized: leading slash, no trailing slash; no whitespace).

htmlstring required

Replacement HTML for this page.

expected_versioninteger nullable

Optimistic-concurrency pin: when set, the operation is rejected with 409 website_version_conflict unless the site's current version matches. Read the version from any prior response on this surface.

Response

Successful Response

object required

Changes