Skip to content

Commit a09bc46

Browse files
Change serialization of SyncFrom to NULL
I changed the serialization of the SynFrom property from Javascript's undefined to null as required by the API. Without it new synchronized blocks cannot be created.
1 parent d7b76c8 commit a09bc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Notion.Client/Models/Blocks/Request/SyncedBlockBlockRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class SyncedBlockBlockRequest : BlockObjectRequest, IColumnChildrenBlockR
1212

1313
public class Data
1414
{
15-
[JsonProperty("synced_from")]
15+
[JsonProperty("synced_from", NullValueHandling = NullValueHandling.Include)]
1616
public SyncedFromBlockId SyncedFrom { get; set; }
1717

1818
[JsonProperty("children")]

0 commit comments

Comments
 (0)