Admin CMS

Create a new CMS page

Mirrors Bagisto admin CMS → Pages → Create. Top-level translated fields (page_title, html_content, etc.) are broadcast to every locale by the PageRepository. Validates url_key (required + unique on cms_page_translations + slug regex), page_title, html_content, and channels (non-empty array of existing channel ids).

post/cms/pages

Request

Request body

url_keystring required
page_titlestring required
html_contentstring required
channelsinteger[] required
meta_titlestring
meta_keywordsstring
meta_descriptionstring

Example request

{
  "url_key": "about-us",
  "page_title": "About Us",
  "html_content": "<h1>About Us</h1><p>Welcome.</p>",
  "channels": [
    1
  ],
  "meta_title": "About Us",
  "meta_keywords": "about,us,company",
  "meta_description": "Learn more about our company."
}

Response

Page created. Returns the same shape as GET /cms/pages/{id}.

Changes

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