← Home
PATCH/hyax-api/v1/landing-pages/:id

Update landing page

Send only changed fields. The `content` field replaces the complete builder document rather than merging it. Every update automatically creates a rollback version. FULL_AI content and CSS pass through the same server-side hardening used by the editor.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request body

FieldRequiredDescription
nameNoInternal page name
descriptionNoInternal description or null
statusNo`DRAFT` | `PUBLISHED` | `ARCHIVED`
slugNoLowercase letters, numbers, and hyphens
builderModeNo`FULL_AI` | `AI_MANUAL`
contentNoComplete builder content JSON (max 2,000,000 characters)
advancedRuntimeNoAdvanced animation runtime object or null
pageTitleNoSEO title or null
pageDescriptionNoSEO description or null
customCssNoPage CSS or null
customHeadCodeNoJavaScript executed in the document head or null
customBodyCodeNoJavaScript executed before body close or null

Request

curl -X PATCH 'https://platform.hyax.com/hyax-api/v1/landing-pages/clx_example_id' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Product launch, revised",
    "status": "PUBLISHED",
    "pageTitle": "Launch the product",
    "customCss": ".hero { min-height: 80vh; }"
  }'

Response

{
  "success": true,
  "data": {
    "id": "clx…",
    "name": "Product launch, revised",
    "slug": "product-launch",
    "status": "PUBLISHED",
    "builderMode": "FULL_AI",
    "updatedAt": "2026-07-29T18:05:00.000Z",
    "versionCreated": true
  }
}