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
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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.