Skip to content

Add a kernel API /api/block/batchUpdateBlock #14335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dale0525 opened this issue Mar 10, 2025 · 1 comment
Closed

Add a kernel API /api/block/batchUpdateBlock #14335

dale0525 opened this issue Mar 10, 2025 · 1 comment
Assignees
Milestone

Comments

@dale0525
Copy link

dale0525 commented Mar 10, 2025

添加 bulkUpdateBlock 接口

In what scenarios do you need this feature?

做了一个自动添加标题序号的插件,由于需要导出的时候也包含序号,因此需要直接修改标题 block 的文本内容。现在的接口直接一个一个发送 API 请求,太慢了。

Describe the optimal solution

允许 /api/block/updateBlock 接口传入一个列表,或者新增一个bulkUpdateBlock接口

Describe the candidate solution

No response

Other information

No response

@88250 88250 self-assigned this Mar 10, 2025
@88250 88250 added this to the 3.1.25 milestone Mar 10, 2025
@88250 88250 changed the title 添加 bulkUpdateBlock 接口 Add a kernel API /api/block/batchUpdateBlock Mar 10, 2025
88250 added a commit that referenced this issue Mar 11, 2025

Verified

This commit was signed with the committer’s verified signature.
@88250
Copy link
Member

88250 commented Mar 11, 2025

端点:/api/block/batchUpdateBlock
参数:

{
    "blocks": [
        {
            "id": "20250311104827-9fubw4s",
            "dataType": "markdown",
            "data": "bbbbbbbbbbba*b*c"
        },
                {
            "id": "20250311114126-iortkld",
            "dataType": "markdown",
            "data": "aaaaaaaa2a*b*c"
        },
        {
            "id": "20250311114126-vcvsxw8",
            "dataType": "markdown",
            "data": "11111113a*b*c"
        }
    ]
}

@88250 88250 closed this as completed Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants