You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-01 22:29:52 +02:00
105 lines
2.3 KiB
Plaintext
Vendored
105 lines
2.3 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 4
|
|
description: Delete block and other functions to work with Notion in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Notion]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete block
|
|
Deletes block by ID
|
|
|
|
|
|
|
|
`Function DeleteBlock(Val Token, Val BlockID) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Token | --token | String | ✔ | Token |
|
|
| BlockID | --block | String | ✔ | Block ID |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Notion
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
|
Block = "29382aa7-fc4e-8132-b909-e68c6f6eaa2d";
|
|
|
|
Result = OPI_Notion.DeleteBlock(Token, Block);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint notion DeleteBlock \
|
|
--token "***" \
|
|
--block "28d82aa7-fc4e-817a-9420-f3d34d3856f0"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint notion DeleteBlock ^
|
|
--token "***" ^
|
|
--block "28d82aa7-fc4e-817a-9420-f3d34d3856f0"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"object": "block",
|
|
"id": "28d82aa7-fc4e-817a-9420-f3d34d3856f0",
|
|
"parent": {
|
|
"type": "page_id",
|
|
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
|
|
},
|
|
"created_time": "2025-10-15T09:40:00Z",
|
|
"last_edited_time": "2025-10-15T09:40:00Z",
|
|
"created_by": {
|
|
"object": "user",
|
|
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
|
|
},
|
|
"last_edited_by": {
|
|
"object": "user",
|
|
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
|
|
},
|
|
"has_children": false,
|
|
"archived": true,
|
|
"in_trash": true,
|
|
"type": "to_do",
|
|
"to_do": {
|
|
"rich_text": [
|
|
{
|
|
"type": "text",
|
|
"text": {
|
|
"content": "YoYO",
|
|
"link": null
|
|
},
|
|
"annotations": {
|
|
"bold": false,
|
|
"italic": false,
|
|
"strikethrough": false,
|
|
"underline": false,
|
|
"code": false,
|
|
"color": "default"
|
|
},
|
|
"plain_text": "YoYO",
|
|
"href": null
|
|
}
|
|
],
|
|
"checked": false,
|
|
"color": "default"
|
|
},
|
|
"request_id": "ad55b329-f6b3-436a-bf0b-cebbf0a74f9d"
|
|
}
|
|
```
|