Admin CMS

Update a CMS page (locale-nested)

Mirrors Bagisto admin CMS → Pages → Edit. Validation is LOCALE-NESTED: <locale>.url_key, <locale>.page_title, <locale>.html_content are required. Top-level: channels (required), locale (required — names which locale block is being updated). url_key uniqueness excludes the current page.

put/cms/pages/{id}

Request

Path parameters

idinteger required
Example:7

CMS page ID.

Request body

localestring required
channelsinteger[] required
enobject

Example request

{
  "locale": "en",
  "channels": [
    1
  ],
  "en": {
    "url_key": "about-us",
    "page_title": "About Us (Updated)",
    "html_content": "<h1>About Us</h1><p>Welcome back.</p>",
    "meta_title": "About Us",
    "meta_keywords": "about,us,company",
    "meta_description": "Updated description."
  }
}

Response

Page updated.

idinteger nullable
urlKeystring nullable
pageTitlestring nullable
htmlContentstring nullable
metaTitlestring nullable
metaKeywordsstring nullable
metaDescriptionstring nullable
layoutstring nullable
previewUrlstring nullable
localestring nullable
channelstring nullable
createdAtstring nullable
updatedAtstring nullable

Changes

No recorded changes to this operation across all 8 revisions of this API.