websites

Update Website Content

Changed on

Replace the site's page content with new HTML.

Content changes do NOT auto-republish: a live site keeps serving its last published artifact until POST .../publish runs again (the returned has_unpublished_changes signals the gap).

put/websites/{website_id}/content

Request

  • Base URL
    https://api.moda.app/v1
  • URL
    https://api.moda.app/v1/websites/{website_id}/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

htmlstring required

Replacement HTML for the site's page.

titlestring nullable

New site title (unchanged when omitted).

expected_versioninteger nullable

Optimistic-concurrency pin: when set, the update 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