PUT
/cms/pages/{bucketId} https://apis-spb.konso.io/cms/pages/{bucketId} Update page
Параметры запроса
id number The unique identifier of the page to update
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
Ответы
200 Page updated successfully
тип: GenericResultResponse<boolean>
Язык:
expand_more
Пример запроса
curl --request PUT \
--url https://apis-spb.konso.io/cms/pages/{bucketId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: {your-api-key}' \
--data '{
"id": 123456,
"title": "Updated About Us",
"slug": "updated-about-us",
"summary": "Updated company information",
"body": "<h1>Updated About Us</h1><p>Our updated story...</p>",
"categoryId": 1,
"isPublished": true,
"publishedDate": "2023-12-01T10:00:00Z",
"imageUrl": "https://example.com/updated-about.jpg",
"metaTitle": "Updated About Us - Company Name",
"metaDescription": "Learn about our updated company information"
}' Response Example 200
{
"result": true
} KONSO