POST
/cms/pages/{bucketId}https://apis-spb.konso.io/cms/pages/{bucketId}Create page
Параметры запроса
titlestringThe title of the page
slugstringThe URL-friendly identifier for the page
summarystringA brief summary of the page
bodystringThe main page content body
categoryIdnumberThe category identifier this page belongs to
isPublishedbooleanWhether the page is published or not
publishedDatestringThe publication date in ISO 8601 format
imageUrlstringThe URL of the page's featured image
metaTitlestringSEO meta title for the page
metaDescriptionstringSEO meta description for the page
Ответы
201Page 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 Example201
{
"result": 123456
}KONSO