Update page
Обновляет страницу согласно переданным параметрам и возвращает обновленную структуру страницы в случае успешного выполнения.
Параметры запроса
idnumberThe unique identifier of the page to update
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
Ответы
тип: GenericResultResponse<boolean>
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"
}'{
"result": true
}Исходный код
Референсные реализации этого эндпоинта — если поведение неочевидно, проще свериться с кодом, чем гадать.
Клиентские библиотеки
Официальные SDK для вызова этого метода из вашего кода — без ручной сборки запроса.
TS