POST
/cms/pages/{bucketId} https://apis-spb.konso.io/cms/pages/{bucketId} Create page
Параметры запроса
title string The title of the page
slug string The URL-friendly identifier for the page
summary string A brief summary of the page
body string The main page content body
categoryId number The category identifier this page belongs to
isPublished boolean Whether the page is published or not
publishedDate string The publication date in ISO 8601 format
imageUrl string The URL of the page's featured image
metaTitle string SEO meta title for the page
metaDescription string SEO meta description for the page
Ответы
201 Page created successfully
тип: GenericResultResponse<number>
Язык:
expand_more
Пример запроса
curl --request POST \
--url https://apis-spb.konso.io/cms/pages/{bucketId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: {your-api-key}' \
--data '{
"title": "About Us",
"slug": "about-us",
"summary": "Learn about our company",
"body": "<h1>About Us</h1><p>Our company story...</p>",
"categoryId": 1,
"isPublished": true,
"publishedDate": "2023-12-01T10:00:00Z",
"imageUrl": "https://example.com/about-image.jpg",
"metaTitle": "About Us - Company Name",
"metaDescription": "Learn about our company history and values"
}' Response Example 201
{
"result": 123456
} KONSO