Skip to content

Commit 4a2bdb5

Browse files
Merge pull request #380 from notion-dotnet/371-add-after-body-param-to-append-block-api
A support for `after` parameter to the Append block children API
2 parents db1681d + 6ee3e63 commit 4a2bdb5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Src/Notion.Client/Api/Blocks/RequestParams/BlocksAppendChildrenParameters.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ namespace Notion.Client
55
public class BlocksAppendChildrenParameters : IBlocksAppendChildrenBodyParameters
66
{
77
public IEnumerable<IBlock> Children { get; set; }
8+
9+
public string After { get; set; }
810
}
911
}

Src/Notion.Client/Api/Blocks/RequestParams/IBlocksAppendChildrenBodyParameters.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@ public interface IBlocksAppendChildrenBodyParameters
88
{
99
[JsonProperty("children")]
1010
IEnumerable<IBlock> Children { get; set; }
11+
12+
/// <summary>
13+
/// The ID of the existing block that the new block should be appended after.
14+
/// </summary>
15+
[JsonProperty("after")]
16+
public string After { get; set; }
1117
}
1218
}

0 commit comments

Comments
 (0)