Skip to main content
PUT
/
space
/
{space_id}
/
block
/
{block_id}
/
move
Python
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>"
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Path Parameters

space_id
string<uuid>
required

Space ID

block_id
string<uuid>
required

Block ID

Body

application/json

MoveBlock payload

parent_id
string
sort
integer

Response

200 - application/json

OK

code
integer
error
string
msg
string