Update content
Обновляет содержимое ресурса с указанными параметрами и возвращает обновленную версию объекта в случае успешного выполнения.
Параметры запроса
idnumberThe unique identifier of the content to update
titlestringThe title of the content
slugstringThe URL-friendly identifier for the content
summarystringA brief summary of the content
bodystringThe main content body
categoryIdnumberThe category identifier this content belongs to
isPublishedbooleanWhether the content is published or not
publishedDatestringThe publication date in ISO 8601 format
imageUrlstringThe URL of the content's featured image
Ответы
200Content 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 Example200
{
"result": true
}KONSO