Return child blocks
Returns list of child blocks of parent block
- Parameters
- Advanced call ?
Function ReturnChildBlocks(Val Token, Val BlockID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| BlockID | --block | String | ✔ | Parent block ID |
Returns
Map Of KeyAndValue - serialized JSON response from Notion
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Block = "29d82aa7-fc4e-8196-bfa0-e3dd8f77f4ee";
Result = OPI_Notion.ReturnChildBlocks(Token, Block);
- Bash
- CMD/Bat
oint notion ReturnChildBlocks \
--token "***" \
--block "36c82aa7-fc4e-8134-b281-e86e4ee0b96d"
oint notion ReturnChildBlocks ^
--token "***" ^
--block "36c82aa7-fc4e-8134-b281-e86e4ee0b96d"
Result
{
"object": "list",
"results": [],
"next_cursor": null,
"has_more": false,
"type": "block",
"block": {},
"request_id": "49314860-94d5-4952-9c61-1c4ba08eeeb7"
}