PUT
/cms/contents/{bucketId} https://apis-spb.konso.io/cms/contents/{bucketId} Update content
Параметры запроса
id number The unique identifier of the content to update
title string The title of the content
slug string The URL-friendly identifier for the content
summary string A brief summary of the content
body string The main content body
categoryId number The category identifier this content belongs to
isPublished boolean Whether the content is published or not
publishedDate string The publication date in ISO 8601 format
imageUrl string The URL of the content's featured image
Ответы
200 Content updated successfully
тип: GenericResultResponse<boolean>
Язык:
expand_more
Пример запроса
curl --request PUT \
--url https://apis-spb.konso.io/cms/contents/{bucketId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: {your-api-key}' \
--data '{
"id": 123456,
"title": "Updated Article",
"slug": "updated-article",
"summary": "Updated summary",
"body": "Updated article content",
"categoryId": 1,
"isPublished": true,
"publishedDate": "2023-12-01T10:00:00Z",
"imageUrl": "https://example.com/updated-image.jpg"
}' Response Example 200
{
"result": true
} KONSO