SitePages/Set
Сохранение контента и/или настроек страницы. В отличие от Set других сущностей, заменяет массив блоков целиком: возьмите текущий content из SitePages/Details, измените и отправьте обратно. Ответ — страница в формате Details.
CLI
python limetime.py page-set <pageGuid> --file page.json
Файл — { "content": [...], "settings": {...} } или просто массив блоков (CLI обернёт его в content).
Тело запроса
content— массив блоков; обязателен, если нетsettingssettings— объект настроек;null— очистить; отсутствует — не меняетсяpageGuid— если не передан в адресе
HTTP
Запрос
POST /v3/SitePages/Set?pageGuid=a1b2c3d4-0050-0050-0050-000000000050 HTTP/1.1
Host: api.limetime.io
X-Access-Key: 7f3a9b2c1d4e5f60718293a4b5c6d7e8
Content-Type: application/json
{
"content": [
{
"id": 1,
"typeId": 1076,
"data": {
"title": "Кубок Лаймтайм 2026",
"showTitle": true
},
"children": []
},
{
"id": 2,
"typeId": 1023,
"data": {
"title": "Документы",
"documents": [
{
"title": "Положение",
"url": "https://example.org/regulations.pdf"
}
]
},
"children": []
}
]
}Ответ
HTTP/1.1 200 OK
Content-Type: application/json
{
"isSuccess": true,
"message": null,
"data": {
"guid": "a1b2c3d4-0050-0050-0050-000000000050",
"urlFull": "/cup-2026/10k",
"lastModifiedDateTimeUtc": "2026-09-22T10:31:00Z",
"content": [
{
"id": 1,
"typeId": 1076,
"data": {
"title": "Кубок Лаймтайм 2026",
"showTitle": true
},
"children": []
},
{
"id": 2,
"typeId": 1023,
"data": {
"title": "Документы",
"documents": [
{
"title": "Положение",
"url": "https://example.org/regulations.pdf"
}
]
},
"children": []
}
],
"settings": {
"version": 2,
"styles": {}
}
}
}Ошибки
page not found— страница чужая или удаленаbody.content is required— нет ниcontent, ниsettingsbody.content must be an array of blockscontent[1].children[0]: block must have typeId (number) or blockType (object)body.settings must be an object or null
Подробное руководство по страницам и блокам — файл PAGES.md в комплекте CLI (см. ИИ-агенты).