1vote

How to ensure that block are unique when appending block to a page?

I use this API to append blocks to the page:

https://api.notion.com/v1/blocks/{block_id}/children

The problem is that the block is added, but due to a network failure, my application does not receive a response and it resends the request, which causes two identical blocks to be added.

I tried to specify the block ID, but it doesn't work.

var parameters = new BlocksAppendChildrenParameters()
{
    Children = new List<IBlock>
    {
        new ParagraphBlock()
        {
            Id = guid,
            Paragraph = new ParagraphBlock.Info
            {
                Text = richText
            }
        },
    }
};
AppendChildrenAsync(pageId, parameters)

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect