Authorizations
Project Bearer token (e.g., "Bearer sk-ac-xxxx")
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Move block to a different parent
client.blocks.move(
space_id='space-uuid',
block_id='block-uuid',
parent_id='new-parent-uuid'
){
"code": 123,
"error": "<string>",
"msg": "<string>"
}Move block by updating its parent_id. Works for all block types (page, folder, text, sop, etc.). For page and folder types, parent_id can be null (root level).
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Move block to a different parent
client.blocks.move(
space_id='space-uuid',
block_id='block-uuid',
parent_id='new-parent-uuid'
){
"code": 123,
"error": "<string>",
"msg": "<string>"
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")