Edit page properties
Changes the properties of an existing page
Function EditPageProperties(Val Token, Val Page, Val Data = "", Val Icon = "", Val Cover = "", Val Archived = False) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Page | --page | String | ✔ | ID of the page being modified |
Data | --data | Map Of KeyAndValue | ✖ | Map of editable parameters |
Icon | --icon | String | ✖ | URL of the page icon image |
Cover | --cover | String | ✖ | URL of the page cover image |
Archived | --archive | Boolean | ✖ | Archive page or not (boolean) |
Returns: Map Of KeyAndValue - serialized JSON response from Notion
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Page = "26e82aa7-fc4e-81d1-a121-d287b9b00b20";
Icon = "https://hut.openintegrations.dev/test_data/picture.jpg";
Cover = "https://hut.openintegrations.dev/test_data/picture2.jpg";
Archive = False;
Properties = New Map;
Properties.Insert("Active", False);
Properties.Insert("Email" , "vector@mail.ru");
Result = OPI_Notion.EditPageProperties(Token, Page, Properties, Icon, Cover, Archive);
- Bash
- CMD/Bat
oint notion EditPageProperties \
--token "***" \
--page "26f82aa7-fc4e-81a3-8709-fb1cf3faacb2" \
--data "{'Active':false,'Email':'vector@mail.ru'}" \
--icon "https://hut.openintegrations.dev/test_data/picture.jpg" \
--cover "https://hut.openintegrations.dev/test_data/picture2.jpg" \
--archive false
oint notion EditPageProperties ^
--token "***" ^
--page "26f82aa7-fc4e-81a3-8709-fb1cf3faacb2" ^
--data "{'Active':false,'Email':'vector@mail.ru'}" ^
--icon "https://hut.openintegrations.dev/test_data/picture.jpg" ^
--cover "https://hut.openintegrations.dev/test_data/picture2.jpg" ^
--archive false
Result
{
"object": "page",
"id": "26f82aa7-fc4e-81a3-8709-fb1cf3faacb2",
"created_time": "2025-09-15T22:34:00Z",
"last_edited_time": "2025-09-15T22:34:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"cover": {
"type": "external",
"external": {
"url": "https://hut.openintegrations.dev/test_data/picture2.jpg"
}
},
"icon": {
"type": "external",
"external": {
"url": "https://hut.openintegrations.dev/test_data/picture.jpg"
}
},
"parent": {
"type": "page_id",
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
},
"archived": false,
"in_trash": false,
"is_locked": false,
"properties": {
"title": {
"id": "title",
"type": "title",
"title": [
{
"type": "text",
"text": {
"content": "title",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "title",
"href": null
}
]
}
},
"url": "https://www.notion.so/title-26f82aa7fc4e81a38709fb1cf3faacb2",
"public_url": null,
"request_id": "d32e4531-b289-41e2-bda5-ed72a8c857e6"
}