How to create a synced block #464
Unanswered
taco-indenbosch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know how to successfully create an (initial) synced block?
I have tried the following:
The
SyncedFrom=null
should not be necessary as it is the default value.This fails with the following exception:
Notion.Client.NotionApiException: body failed validation: body.children[0].synced_block.synced_from should be defined, instead was undefined.
I guess the problem is that the
null
value forSyncedFrom
is serialized as a missing property when sent to the Notion API, thereby beingundefined
rather than a Javascriptnull
, but I don't know how to send an actualnull
. Or is there something else I am doing wrong?Beta Was this translation helpful? Give feedback.
All reactions